Forum Moderators: open
Most likely Google will regard both pages to be the same.
True in most cases. I have seen instances where those two URIs produce different PageRank scores. I highly recommend that you encourage your link partners to link to the URI without adding the index.php. Why? You never know when the underlying technology will change so this would be my suggestion...
www.example.com/
Be sure to include the forward trailing slash. Same method applies to any root level pages at the sub-directory level...
www.example.com/sub/
Don't the SEs add it automatically?
Not in all cases and I don't know why. I know our servers are configured to automatically add the trailing forward slash to any root level URIs. Adding the trailing forward slash is good practice. If you do a search here at WebmasterWorld, there are many topics on the trailing forward slash issue.
Is there way to make www.site.com/index.php to ww.site.com.....masking good idea?
Hmmm, you shouldn't have to unless of course your link partners are linking to the full URI of the root level page. In that case, you'll need to set up a 301 Moved Permanently redirect to handle those requests if you want to. It shouldn't really matter. Unfortunately, the SEs will index that full URI. If you ever change from .php to something else, it will present problems.
yes both the queries give the same result.
Try Server Header Check [webmasterworld.com] to better understand how browsers/spiders see the link between
www.site.com and www.site.com/index.php
www.site.com
HTTP/1.1 200 OK
Date: Thu, 15 Jan 2004 13:45:30 GMT
Server: Apache/1.3.29 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.2 PHP/4.3.3 FrontPage/5.0.2.2634 mod_ssl/2.8.16 OpenSSL/0.9.6b
X-Powered-By: PHP/4.3.3
Connection: close
Content-Type: text/html
www.site.com/index.php
HTTP/1.1 200 OK
Date: Thu, 15 Jan 2004 13:46:27 GMT
Server: Apache/1.3.29 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.2 PHP/4.3.3 FrontPage/5.0.2.2634 mod_ssl/2.8.16 OpenSSL/0.9.6b
X-Powered-By: PHP/4.3.3
Connection: close
Content-Type: text/html