On Wed, 16 Aug 2006 23:06:08 -0400, ".oO[x]" <nospam@nospam.invalid>
wrote:
>A 300-page site with many links to pages like this:
>
>example.com/directory/stuff/index.html
>
>Is it worth changing them to:
>
>example.com/directory/stuff/
>
>Should there also be 301 redirects from every /directory/index.html
>to /directory/
>?
>
>It doesn't have many IBLs, and very little traffic.
>
>Also, in general, on pages where Google has indexed both / and /index.html
>is it good to redirect the index.html to /
>?
You mean should you have something like this in your .htaccess file?
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.example\.com$
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(([^/]+/)*)index\.html\ HTTP/
RewriteRule index\.html$
http://www.example.com/%1 [R=301,L]
</IfModule>
Probably, yes. I'll let Bokma pick that one apart.
BB
--
http://www.kruse.co.uk/affordable-we...n-services.htm
http://www.kruse.co.uk/google-mountain.htm
http://www.kruse.co.uk/seo-home-page.htm