Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Multiple Domains - Apache



On Thursday 01 May 2008 12:06:28 Brett Robson wrote:
> <VirtualHost *:80>
>         ServerName www.domain.net
>         RewriteEngine on
>         RewriteRule ^/(.*)$ http://officede.net/$1
> </VirtualHost>

This is NOT correct, as it does not set the status correctly.
Append the flag "[R=301]" for MOVED PERMANENTLY.

> this code redirects all page  requests correctly to the "real" address, eg

Actually, Redirect redirects all page requests "correctly":

http://httpd.apache.org/docs/2.2/mod/mod_alias.html#redirect

"Additional path information beyond the matched URL-Path will
be appended to the target URL."

Cheers,

Travis


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links