Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: Redircting from index.html to /

  • Subject: Re: Redircting from index.html to /
  • From: Roy Schestowitz <newsgroups@xxxxxxxxxxxxxxx>
  • Date: Thu, 17 Aug 2006 09:13:09 +0100
  • Newsgroups: alt.internet.search-engines
  • Organization: schestowitz.com / ISBE, Manchester University / ITS
  • References: <12e7n911qad19da@corp.supernews.com> <gr08e2pfaqj0jkk84gqimr76hkrgfp8ls9@4ax.com>
  • Reply-to: newsgroups@xxxxxxxxxxxxxxx
  • User-agent: KNode/0.7.2
__/ [ Big Bill ] on Thursday 17 August 2006 06:47 \__

> On Wed, 16 Aug 2006 23:06:08 -0400, ".oO[x]" <nospam@xxxxxxxxxxxxxx>
> 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.

Probably depends on the software that runs the server. Could be LiteSpeed,
for example. I wonder if there is a front-end like cPanel or Plesk to all of
this. Makes life much easier by generating the code... Surely, on the other
hand, front end don't allow the user to be expressive, although some might
support regex (which complicates the front-end).

Best wishes,

Roy

-- 
Roy S. Schestowitz   
http://Schestowitz.com  |     GNU/Linux     |     PGP-Key: 0x74572E8E
Swap:  1036184k total,   474456k used,   561728k free,    93132k cached
      http://iuron.com - next generation of search paradigms

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index