Re: [squid-users] 301 redirection with Squid based on URL (is Squirm the fastest way?)

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Thu, 15 Sep 2011 23:44:30 +1200

On 15/09/11 23:20, Manuel wrote:
> I am using Squid 2.6 as a reverse proxy. I am receiving all the traffic from
> several domain names (.com .org etc.) but the website is always the same. I
> would like to have only one domain (specially for SEO reasons) so I would
> like Squid to redirect those domains with a 301 Moved Permanently HTTP
> header to the main one. Note that I also want to redirect internal pages.
> What is the best way (taking into consideration performance and speed) to do
> so? Squirm?

Fastest would be deny_info. With no helper lookup delays at all.
In 2.6 (and up to 3.1 really) it can only bounce to a fixed URL. ie the
front page of the main site. So it is up to you whether its worth that
for the speed or a redirector helper like squirm for flexibility.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.15
   Beta testers wanted for 3.2.0.11
Received on Thu Sep 15 2011 - 11:44:50 MDT

This archive was generated by hypermail 2.2.0 : Sat Oct 01 2011 - 12:00:03 MDT