Forum Moderators: Robert Charlton & goodroi
I am using .htaccess file to generate friendly URLs for my dynamic PHP pages...
http://www.example.com/Dir1/Dir2/Dir3/1234
For some reason, google doesn't index these pages and returns for 404 error codes in my sitemap...
I am using "Header Checker" tools to check the return codes and it is returning 200 code..
Here is the actual code
#1 Server Response: http://www.example.com/Dir1/Dir2/Dir3/1234
HTTP Status Code: HTTP/1.1 200 OK
Date: Mon, 03 Dec 2007 02:09:43 GMT
Server: Apache/1.3.37 (Unix) mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b
Cache-control: private
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Pragma: no-cache
X-Powered-By: PHP/4.4.4
Set-Cookie: PHPSESSID=760c73aaa2e7ffff9ed84dfaa6f23ac3; path=/
Set-Cookie: example[0]=34; expires=Wed, 02 Jan 2008 02:09:43 GMT; path=/
Set-Cookie: example[1]=city_name; expires=Wed, 02 Jan 2008 02:09:43 GMT; path=/
Connection: close
Content-Type: text/html
I couldn't figure out why google consider these pages as 404
Any help is appreciated..
Thanks
Also, I wsa looking at the log files the other day..Google visited the page htaccess redirects...
In my htaccess file the logic is
ex:
http://www.example.com/Dir1/Dir2/Dir3/1234
Redirects to page below
http://www.example.com/inc/index.php?1234
Google visited http://www.example.com/inc/index.php?1234