Jump to content
Sign in to follow this  
qatryk

google sm weryfikacja po raz kolejny

Recommended Posts

Temat był tu wałkowany kilkukrotnie ale nic mi nie pomogło więc pewnie robie coś źle.

No więc tak mam stronke na wordpresie. Chciałem sobie dodać ja do google sitemaps. No i cały czas wywala mi "Wykryliśmy, że Twoja strona błędu 404 (nie znaleziono pliku) zwraca stan 200 (Sukces) w nagłówku.".

Mój htaccess wygląda tak:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
ErrorDocument 404

ponadto w index.php mam na początku wklejone:

<?if ($_SERVER[REQUEST_URI]=="/google44c1e45c7909ed9c.html") {
die();
} else if (eregi("^\/google(.*)\.html$", $_SERVER[REQUEST_URI])) {
header("HTTP/1.1 404 Not Found");
die();
}?>

i teraz tak jak sprawdzam nagłówki to mam tak

-dla strony głównej:

#1 Server Response: http://qatryk.pl/
HTTP Status Code: HTTP/1.1 200 OK
Date: Thu, 08 Feb 2007 19:46:17 GMT
Server: Apache/1.3.34 (Debian) PHP/4.3.10-18
X-Powered-By: PHP/4.3.10-18
X-Pingback: http://qatryk.pl/xmlrpc.php
Connection: close
Content-Type: text/html; charset=UTF-8

-dla strony z dobrym kodem:

#1 Server Response: http://qatryk.pl/google44c1e45c7909ed9c.html
HTTP Status Code: HTTP/1.1 200 OK
Date: Thu, 08 Feb 2007 19:45:36 GMT
Server: Apache/1.3.34 (Debian) PHP/4.3.10-18
Last-Modified: Thu, 19 Oct 2006 21:49:45 GMT
ETag: "837ca-0-4537f2f9"
Accept-Ranges: bytes
Content-Length: 0
Connection: close
Content-Type: text/html
X-Pad: avoid browser bug

-dla strony ze złym kodem weryfikującym:

1 Server Response: http://qatryk.pl/google44c1e45c7909ed9d.html
HTTP Status Code: HTTP/1.1 404 Not Found
Date: Thu, 08 Feb 2007 19:38:30 GMT
Server: Apache/1.3.34 (Debian) PHP/4.3.10-18
X-Powered-By: PHP/4.3.10-18
X-Pingback: http://qatryk.pl/xmlrpc.php
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Last-Modified: Thu, 08 Feb 2007 19:38:31 GMT
Cache-Control: no-cache, must-revalidate, max-age=0
Pragma: no-cache
Connection: close
Content-Type: text/html; charset=UTF-8

co zatem jest nie tak?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use Privacy Policy