[CentOS] apache redirection
Ski Dawg
centos at skidawg.org
Fri May 21 21:04:40 UTC 2010
On Wed, May 19, 2010 at 7:45 PM, Barry Brimer <lists at brimer.org> wrote:
> As for the redirection, I would handle it with mod_rewrite as follows:
>
> <VirtualHost XXX.XXX.XXX.XXX:443>
> ServerName domain.tld
> RewriteCond %{HTTP_HOST} !^www\.domain\.tld$ [NC]
> RewriteCond %{HTTP_HOST} !^$
> RewriteRule ^/(.*) https://www.domain.tld/$1 [L,R=301]
> </VirtualHost>
Barry and Jobst,
Thanks for the rewrite suggestions. I will file them away and give
them a try when I come back to this issue, sometime in the future.
--
Doug
Registered Linux User #285548 (http://counter.li.org)
----------------------------------------
Never trust a computer you can't throw out a window.
-- Steve Wozniak
More information about the CentOS
mailing list