1

How to redirect multiple domains to "www." with mod_alias "Redirect" directive?

view story
linux-howto

http://serverfault.com – I'm trying to redirect multiple VirtualHosts without a preceeding "www." from one VirtualHost to another, like so: <VirtualHost *:80> ServerName example.com ServerAlias example.org ServerAlias example.net # I either need some kind of Apache conditional here... Redirect 301 / http://www.example.com/ # ... or I need to substitute the Redirect *URL* with a variable # for the ServerName/ServerAlias </VirtualHost> <VirtualHost *:80> ServerName www.example.com </VirtualHost> I could just create several VirtualHost containers and redirect ea (HowTos)