Forums / General Questions / 404 (file not found) error page returns a status of 200

404 (file not found) error page returns a status of 200

Locked

Started by flyingpenguin on 25 Mar 2009, 8:57 AM · Views: 1,779

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
25 Mar 2009, 8:57 AM
#1
flyingpenguin avatar

flyingpenguin

New Zenner

Join Date:
Jan 2009
Posts:
12
Plugin Contributions:
0

404 (file not found) error page returns a status of 200

Hi, hopefully someone can help me with this.

When trying to verfy my site with Google Webmaster tools, they said it could not be verified because:

We've detected that your 404 (file not found) error page returns a status of 200 (Success) in the header.

Apparently this means my site is not secure. I believe it is something to do with the .htaccess file.

here is my .htaccess in the root of my site.

BOF SSU

Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /

Deny access from .htaccess

RewriteRule ^.htaccess$ - [F]

RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*) index.php?/$1 [E=VAR1:$1,QSA]

EOF SSU

Could someone please advise me how to change this so my 404 pages return the correct 404 status?

Please bear in mind that I have no coding knowledge so will need to spoon fed.

Many thanks

25 Mar 2009, 9:42 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: 404 (file not found) error page returns a status of 200

flyingpenguin:

When trying to verfy my site with Google Webmaster tools, they said it could not be verified because:

We've detected that your 404 (file not found) error page returns a status of 200 (Success) in the header.Well, you've currently got your Zen Cart store configured to show your Home Page when a Page Not Found problem occurs.
Try changing the setting in Admin->Configuration->My Store->Missing Page Check to ... "Page Not Found"

flyingpenguin:

Apparently this means my site is not secure.
I'm not sure how it means the "site is not secure".

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.