
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tlug] Multiple Domains - Apache
- Date: Thu, 01 May 2008 12:06:28 +0900
- From: Brett Robson <tlug@example.com>
- Subject: Re: [tlug] Multiple Domains - Apache
- References: <5d4da3b88ceb2ef7d5735c55eed18ba9@localhost.localdomain> <200804302320.47907.tlug@extellisys.net>
- User-agent: Icedove 1.5.0.14pre (X11/20080305)
tlug@example.com wrote:
<VirtualHost *:80>
ServerName domaina.com
Redirect permanent / http://www.domaina.com/
</VirtualHost>
Small variation:
http://www.domain.net redirects to http://domain.net
<VirtualHost *:80>
ServerName www.domain.net
RewriteEngine on
RewriteRule ^/(.*)$ http://officede.net/$1
</VirtualHost>
this code redirects all page requests correctly to the "real" address, eg
http://www.domain.net/a/b.html is redirected to
http://domain.net/a/b.html
Probably not strictly necessary but the code is straight forward.
Brett
Home |
Main Index |
Thread Index