File does not exist: 404.shtml - How to make it for all accounts?
Hello, is there any good way on how to create an 404.shtml file for all newly created cpanela ccounts automatically?
I mean one way is to have it added to each account www folder,
then modifying httpd.conf and setting some kind of redirect?
But i need cpanel users to be able to override this redirect..
what is the clever way to solve this? or i should let the errors come in my server httpd error_log file?
-
Hello :) You may find this thread helpful: Custom Error Pages Thank you. 0 -
Will the mentioned tutorial fix the reported 404 errors while the 404 document is just included instead being physically located in users www folder? How can user override these 404 by his own? 0 -
[QUOTE]Hello, is there any good way on how to create an 404.shtml file for all newly created cpanela ccounts automatically?
Add default files you want all accounts to start out with, to the root/cpanel3-skel/ and/or for reseller, username/cpanel3-skel/ directories to prevent error log cruft. Skeleton Directory - cPanel Documentation I like to add a plain txt file as well, explaining what the default files are and how to modify them for the new user. For example: .vB0 -
yes, this i dont want to do. i dont want to add any files to the user accounts if possible. Would be more wise and better to set any global 404.shtml which anyone can override in htaccess or by creating another 404 file? 0 -
[quote="postcd, post: 1640892">Will the mentioned tutorial fix the reported 404 errors while the 404 document is just included instead being physically located in users www folder? How can user override these 404 by his own?
Please ensure you read the full thread that I referenced. Both questions are answered in that thread. Thanks.0 -
That topic is quite large. if you know the answer, please post it. 0 -
Hello :) The first post itself explains that a 404 page is not required in every account. It's only required in a single directory: Please note that reading an entire thread might seem like a tedious task, but it's really the best way to learn new information. Thank you. 0 -
Thanks, so i did it as you described in your post
but mentioned code with alias dont work Thank you0 -
Feel free to open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome. Thank you. 0 -
Also i found this works: OPTION A) [QUOTE]ErrorDocument 404 "NO! There is nothing here.. go away quickly!
OPTION B) [QUOTE]ErrorDocument 404 "404 Error! - Not found"0
Please sign in to leave a comment.
Comments
10 comments