|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
I have a custom 404 error message page and according to this headercheck it returns a 404 header.
However google webmaster tools will not allow me to choose between mysite.com and www.mysite.com as they say my 404 error page is returning a 200 ok message so they cannot verify the site. does anyone know how to fix this? many thanks |
|
||||
|
Can you at least tell the URL?
__________________
"Being an expert isn't telling other people what you know. It's understanding what questions to ask, and flexibly applying your knowledge to the specific situation at hand. Being an expert means providing sensible, highly contextual direction." Jeff Atwood SEO Workers - Search Engine Optimization Consulting Company | SEO Analysis Tool | Webnauts Net SEO |
|
||||
|
oh yes sorry my mistake
www.codestone.net/404.php |
|
||||
|
It definitely gives a 404 header, however it redirects after a few seconds. That redirect might be the problem.
Also, any request without a www. seems to get redirected to www.codestone.com, so google probably wouldn't give you the choice since it can't access anything in the non-www version.
__________________
The best way to learn anything, is to question everything. |
|
||||
|
Quote:
|
|
|||
|
Yes, you have set (IMO incorrectly), your 301 redirect
http://codestone.net/404.php => http://www.codestone.net/ When it should do this: http://codestone.net/404.php => http://www.codestone.net/404.php If you are using apache, your .htaccess should contain: RewriteCond %{HTTP_HOST} ^codestone.net[NC] RewriteRule ^(.*)$ http://www.codestone.net/$1 [L,R=301] That would do the trick. Cheers! |
|
||||
|
We had the same problem:
Quote:
ErrorDocument 404 /404.html
__________________
Follow: @moreSEOtips @chowell18 Affordable Search Engine Optimization Services & Consulting |
|
|||
|
I seem to recall when I had the same problem that google has an alternative method of verifying the site by adding a meta tag instead of uploading a file. Using this method will verify you regardless of the response headers.
|
|
||||
|
Hi thanks for your help with this
Chowell - my htaccess has the path as relative not full domain so i know that's not the issue. corvettehunt thanks for the code there i will give that a go i'll have a look at google's alternative methods too see if i can't get this sorted this morning! |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |