Page is a not externally linkable
- Google
-- Google SEO News and Discussion
---- Index.asp showing for homepage


lucy24 - 9:38 pm on Apr 25, 2012 (gmt 0)


Definitely include a redirect, but also fine-tooth-comb your site to make sure no "index.xtn" has sneaked in anywhere. (Been there. Done that. Why the bleep bleep does g### keep asking for onespecificdirectory/index.html? Oh. Because I have a link to it.)

This type of Redirect is two lines in the config file or htaccess:

RewriteCond %{THE_REQUEST} index\.asp
RewriteRule (([^/]+/)*)index\.asp$ http://www.example.com/$1 [R=301,L]

Well, plus one line if you haven't already got the RewriteEngine on ;) The accompanying Condition is to prevent infinite Redirects if mod_dir has already done its stuff with correctly named files. If you are on shared hosting you can't make assumptions about what order the mods will execute in.


Thread source:: http://www.webmasterworld.com/google/4445104.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com