[CentOS] apache redirection

Fri May 21 22:38:41 UTC 2010
James Hogarth <james.hogarth at gmail.com>

On 21 May 2010 22:04, Ski Dawg <centos at skidawg.org> wrote:
> 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
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
Those rewrite suggestions will not accomplish in solving the problem
you presented....

I wish people would actually read through the replies before
suggesting something that has already been shown not to work ^^

James