Re: apache redirection

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



On Wed, May 19, 2010 at 7:45 PM, Barry Brimer <lists@xxxxxxxxxx> 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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux