Index: [Article Count Order] [Thread]

Date:  Tue, 27 Jun 2006 10:59:25 -0700
From:  "Elmer Tolentino" <elmer (at mark) webmerch.com>
Subject:  [coba-e:05895] Re: 301 redirects in .htaccess
To:  <coba-e (at mark) bluequartz.org>
Message-Id:  <200606271828.k5RISduv024749 (at mark) mailgw.webmerch.com>
In-Reply-To:  <F07DD4D0940AFF41A207BE85479D2AFF180EC2 (at mark) server.mainline.local>
X-Mail-Count: 05895



> -----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