Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- .htaccess redirects for index.html, index.php and index.htm to /


Kimkia - 4:25 pm on Jan 3, 2013 (gmt 0)


Thank you for the helpful responses. I've been busy. My site is static, and there's no easy way to make global changes, but here's what I've done:

- Changed as many of the internal directory links as I could find (navigation, past newsletters, etc)
- Changed the rel="canonical" on individual directory indexes to point to urls without the index.shtml extension
- Updated htaccess to this:

RewriteEngine on
# Redirect index in any directory to root of that directory
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.[^\ ]*\ HTTP/
RewriteRule ^(([^/]+/)*)index\.(shtml|html?)$ http://www.example.com/$1? [R=301,L]
# Redirect non-canonical hostname to www
RewriteCond %{HTTP_HOST} !^(www\.example\.com)?$
RewriteRule (.*) http://www.example.com/$1 [R=301,L]

Should I also put in individual 301 redirects for each category index?

I also regenerated my sitemap and pinged all the major search engines.

The bad news is that my traffic from Google has plummeted overnight, down by about 40%, which is going to cost me a fortune in lost revenue. Any insight as to whether this might improve and, if so, how long it might take?


Thread source:: http://www.webmasterworld.com/apache/4485314.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com