X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   Server Response 404 NOT returned for unavailable pages (https://forum.x-cart.com/showthread.php?t=66245)

DavyMac 02-28-2013 03:23 AM

Server Response 404 NOT returned for unavailable pages
Using the HTTP Status code checker at SEO Book I discovered that for non-existent html files ( www.mydomain.com/xxxx.html) and folders (www.mydomain.com/xxxx/) instead of X-Cart returning a soft 404 error it is in fact returning "SERVER RESPONSE: HTTP/1.1 200 OK".

In my .htaccess files I have the following:
HTML Code:

# If you would like X-Cart to show informative message for errors caused
# by opening of missing/deleted files (HTTP Error 404), please uncomment
# the line below.
ErrorDocument 404 /404.php
# Show default error document for 404 errors caused by opening of image/media files.
<Files ~ "\.(gif|jpe?g|png|js|css|swf|ico)$">
 ErrorDocument 404 default

I also have CDSEO Pro set up to display a custom static page when there is a request for a non-existent file. The static page is displayed correctly but server response 200 is returned, which is not correct and in fact damaging.

Missing .php files result in X-Cart's 404 page being displayed.

DavyMac 02-28-2013 03:56 AM

Re: Server Response 404 NOT returned for unavailable pages
I decided to get a second opinion and used Google's "Fetch as Google" tool and that says 404s ARE being returned!!!!

Well, I'll ignore what SEO Book says and believe in Google.

Moral of the story is use Google's toolset, because so long as Google is happy then little else matters. (sad but true)

All times are GMT -8. The time now is 04:46 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.