httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Asai <a...@globalchangemusic.org>
Subject Re: [users@httpd] Global 301 Redirects
Date Mon, 14 Feb 2011 21:06:07 GMT
Thank you for your response.  Much appreciated.

--asai


On 2/9/2011 10:45 AM, Igor Galić wrote:
>
> ----- Original Message -----
>> Greetings,
>>
>> I'm trying to figure out a way to have each of my vhosts do a 301
>> redirect upon receiving a request which contains "www."
>>
>> Basically we want to drop all of those www subdomains for SEO
>> purposes,
>> but we are hosting dozens of websites, and would rather not have to
> Really? Just dozens?
>
>> put
>> in a redirect on every vhost entry.  My thought were that we could do
>> this using mod-rewrite and regexp, but not sure.
> Anyway... Sure you could use mod_rewrite to complicate your config
> even more -- as, with dozens! of vhosts you're afraid of touching them
>
> But even then you'd have to add, at least:
>
> RewriteEngine On
> RewriteOptions inherit
>
> to each vhost.
>
>> Any insights?
> Now, instead of complicating things, why not take a shot at simplifying
> it with mod_macro:
> http://www.cri.ensmp.fr/~coelho/mod_macro/
>
>> Thanks.
>>
>> --
>> --asai
> i
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message