Announcement

Collapse
No announcement yet.

404 Question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    404 Question

    I have set up my .htaccess file to do a 404 and some 301s.

    The 301s are working fine as is the 404 for anything that comes in via www.performancemotorcare.com/acatalog. However on doing a test on a non existant directory or file direct to www.performancemotorcare.com/nonexistantfile then I get a very messed up 404 page.

    My code looks like this: (I have taken out all of the 301s)

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^performancemotorcare.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.performancemotorcare.com$
    ErrorDocument 404 /acatalog/404Page.html

    I am assuming the /acatalog/404Page.html is the bit that directs the visitor to the custom 404 page. Has anyone any thoughts on where I might be going wrong here?

    Thanks
    Last edited by robmob; 06-Oct-2008, 12:27 AM. Reason: correction
    Rob
    For all your car, motorcycle and marine care, cleaning and detailing products.

    #2
    Have you made a copy of your CSS and put it in the root folder?

    The page is looking for it:

    Code:
    <link type="text/css" rel="stylesheet" href="actinic.css">
    but I'd imagine that you CSS file is in your acatalog folder at the moment!

    Army Gore-tex
    Winter Climbing Mitts
    webD's Blog: Website design, SEO and other ramblings…
    Twitter LinkedIN

    If you think a post is good, rate it!

    Find the answers in the Knowledge Base | Have you read the User Guides

    Comment


      #3
      Thanks webD

      No there isn't a copy of the syylesheet in the root folder only in acatalog.

      I have 3 css files - actinic, theme and 1External - do I need to copy all 3 to the root directory or just the actinic one referenced in your post?
      Rob
      For all your car, motorcycle and marine care, cleaning and detailing products.

      Comment


        #4
        It looks like it just needs actinic.css but there's no harm in copying all three if you're unsure.

        Comment


          #5
          Thanks guys

          Nearly there with this. I have copied the css files into root. I now get a few script debugging messages with ie explorer debugging enabled or the main banner image just doesn't appear with debugging switched off.

          Assume this may just be some coding in the 404 page?
          Rob
          For all your car, motorcycle and marine care, cleaning and detailing products.

          Comment


            #6
            the logo problem is because your logo is in your acatalog folder (you'll see your homepage references acatalog/logo.jpg ) and your 404 page is looking at the root.
            Either change your code to reference the acatalog/logo.jpg on your 404 page or stick the logo in your root directory too.
            Either will fix it.
            Tracey

            Comment


              #7
              In Firefox if you load the page with the error console open you will see the errors and will be able to work through them.

              I expect some are related to the shopping cart - which you can remove fom eth 404 page.

              Comment


                #8
                Thanks everyone. All displaying fine now.

                Unfortunatley I have yet to get to grips with coding. I am okay at following instructions and cutting and pasting but when it comes to understanding code, errors and how to fix them I have to leave that to those much more knowledgeable than me.

                Can I assume that most visitors will have de-bugging or error checking turned OFF as standard?
                Rob
                For all your car, motorcycle and marine care, cleaning and detailing products.

                Comment


                  #9
                  The View cart and Pay Now pages do not format correctly when going to them from the 404 page.

                  Comment

                  Working...
                  X