How do I redirect multiple domains to a single domain in lighttpd

Posted by sleepyjames on Server Fault See other posts from Server Fault or by sleepyjames
Published on 2010-01-25T00:30:02Z Indexed on 2010/03/29 16:03 UTC
Read the original article Hit count: 311

If I have the following domains in lighttpd:
domain1.com
domain1.co.uk
domain2.com
domain2.co.uk

How do i redirect all these to to 'domain.com'?

ie:
domain1.co.uk/some-path/ redirects to domain.com/some-path/ and
domain2.com/some-other-path/ redirects to domain.com/some-other-path/

Thanks.

© Server Fault or respective owner

Related posts about lighttpd

Related posts about redirects