Index: [Article Count Order] [Thread]

Date:  Tue, 27 Jun 2006 21:12:28 +0100
From:  "Colin Jack" <colin (at mark) mainline.co.uk>
Subject:  [coba-e:05897] Re: 301 redirects in .htaccess
To:  <coba-e (at mark) bluequartz.org>
Message-Id:  <F07DD4D0940AFF41A207BE85479D2AFF180EC9 (at mark) server.mainline.local>
X-Mail-Count: 05897

 

> -----Original Message-----
> From: Elmer Tolentino [mailto:elmer (at mark) webmerch.com] 
> Sent: 27 June 2006 18:59
> To: coba-e (at mark) bluequartz.org
> Subject: [coba-e:05895] Re: 301 redirects in .htaccess
> 
> 
> 
> > -----Original Message-----
> > From: Colin Jack [mailto:colin (at mark) mainline.co.uk]
> > Sent: Tuesday, June 27, 2006 9:22 AM
> > To: coba-e (at mark) bluequartz.org
> > Subject: [coba-e:05893] 301 redirects in .htaccess
> > 
> > We have moved a client off an old RAQ3 server onto one of our new 
> > CentOS/BQ 4.2 specials and have a problem.
> > 
> > They use 301 redirects in a .htaccess in the root of their 
> web site e.g.
> > 
> > Redirect 301 /pages/html/e_of_e.html
> > http://www.easterncathedrals.org.uk/index.html
> > Redirect 301 /pages/html/chelmsford.html 
> > http://www.easterncathedrals.org.uk/chelmsford.html
> > 
> 
> Have a look at your httpd.conf?
> 
> I added the block below:
> 
> <Directory "/home/.sites/">
>     Options Indexes FollowSymLinks Includes MultiViews
>     AllowOverride All
> </Directory>
> 
> After the default setting of:
> 
> <Directory />
>     Options FollowSymLinks
>     AllowOverride None
> </Directory>
> 
> Not sure how much of a security risk it is enabling the 
> options and the overrides but I do have redirects working.
> 
> 
> > This doesn't work on the new box - lots of these in the error_log:
> > 
> > [Tue Jun 27 16:47:08 2006] [alert] [client 72.30.110.16]
> > /home/.sites/38/site94/web/.htaccess: Redirect not allowed 
> here [Tue 
> > Jun 27 16:47:08 2006] [alert] [client 72.30.110.16]
> > /home/.sites/38/site94/web/.htaccess: Redirect not allowed 
> here [Tue 
> > Jun 27 16:47:35 2006] [alert] [client 84.45.131.144]
> > /home/.sites/38/site94/web/.htaccess: Redirect not allowed here
> > 
> > Can anybody shed any light?
> > 
> > Thanks
> > 
> > Colin
> 

The question is why was it disabled in the first place ;)

301 redirects are the recommended solution to avoid annoying the search
engines, but I do wonder why they are not enabled.

Anybody know?

Colin