Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Custom 404 within a folder.
05-09-2012, 01:30 AM #1
- Join Date
- Feb 2012
- Thanked 0 Times in 0 Posts
Custom 404 within a folder.
Hi there! Not sure if this is considered server side or an HTML issue; apologies if I've posted this in the wrong spot.
I have a custom 404 error set up for my site. So whenever someone does something like www.MySite.com/blahblah they get a 404 error. However, in the subfolders of my site it looks like the CSS and images for my site aren't loading in the 404. So if they go to www.MySite.com/Subfolder/blahblah the 404 page is not styled and has no images. I have the following .htaccess file in my public folder:
ErrorDocument 500 /500.htm ErrorDocument 404 /404.htm ErrorDocument 403 /403.htm ErrorDocument 401 /401.htm ErrorDocument 400 /400.htm
05-09-2012, 08:24 AM #2
- Join Date
- Mar 2007
- Thanked 2,223 Times in 2,210 Posts
- Blog Entries
It will be okay if you link all your CSS,script,image files using the absolute path, starting with /. See http://www.codingforums.com/showpost...67&postcount=9
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)