I want to redirect.

I've tried this :

acl acl_www hdr_beg(host) -i www.
reqirep ^Host:\ (.*)$ Host:\ www.\1 if !acl_www
redirect prefix / code 301 if !acl_www

The non-www works but it doesn't redirect.



Le 07/10/2013 11:00, Baptiste a écrit :
Hi Olivier,

Do you want to redirect or to rewrite ???

Baptiste

On Mon, Oct 7, 2013 at 10:12 AM, Olivier Desport
<olivier.desp...@ac-versailles.fr> wrote:
Hi,

I need to redirect all non-www requests to www.

Ex : mysite.com should be rewrited to www.mysite.com

I think I have to use reqirep but I don't know how.

Thanks


Reply via email to