Hello and welcome to our community! Is this your first visit?
Register
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
    Posts
    5
    Thanks
    1
    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:

    Code:
    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
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,801
    Thanks
    160
    Thanked 2,216 Times in 2,203 Posts
    Blog Entries
    1
    It will be okay if you link all your CSS,script,image files using the absolute path, starting with /. See CSS, Div,Linking
    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
    •