Hi there!
So I was wonder how you change the error pages on your website.
Does anyone know?
I have free hosting.
Thanks,
-Rothtech
www.rotholtz.com
Hi there!
So I was wonder how you change the error pages on your website.
Does anyone know?
I have free hosting.
Thanks,
-Rothtech
www.rotholtz.com
The way I do it.
1. Create a subdirectory of public_html to house the pages. I call it 'error' or 'errors'.
2. Create the html files in that directory. I usually name them 404.html etc after the error codes.
3. Go to public_html and open .htaccess to edit
4. Add lines:
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 500 /error/500.html
Save the file.
5. Try to access a nonexistent file to test.
Note: If you do not see .htaccess in File Manager, close File Manager. At the bottom of cPanel main page, click on reset all interface settings and then click on File Manage. On dialog box that pops up, check "Display hidden (dot) files". That should make .htaccess show up.
Nothing is always absolutely so.
Wait!
I got it!
Last edited by neosurfer2695; 04-17-2010 at 04:22 PM.
Using cPanel File Manager, when you are in public_html , click on "New Folder" icon, upper left of page. Name it what you want.
FTP client should have similar capacity.
You don't have to put them in their own directory, but I like to keep things neat.
Nothing is always absolutely so.