Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    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
    Is there something I need to do in my .htaccess document to account for 404 errors from within folders, or is this something I need to correct in my HTML perhaps? Thanks so much for any help!

  2. #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Thanked 2,235 Times in 2,222 Posts
    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)


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts