Simple rewrite question

ISAPI_Rewrite is a powerful URL manipulation engine based on regular expressions
User avatar
Posts: 3
Joined: 16 Mar 2012, 15:41

Simple rewrite question

16 Mar 2012, 15:49

Can someone please tell me why the statement below doesn't work. All I'm trying to do is to add 'www'. Thanks

RewriteHeader Host: perinatalservicesbc\.ca www\.perinatalservicesbc\.ca [I]

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Simple rewrite question

19 Mar 2012, 10:19

Please use the following syntax:

RewriteCond Host: perinatalservicesbc\.ca
RewriteRule (.*) http\://www.perinatalservicesbc.ca$1 [I,RP]

Regards,
Anton - HeliconTech Team

User avatar
Posts: 16
Joined: 19 Nov 2012, 22:21

Re: Simple rewrite question

20 Nov 2012, 23:24

Thanks. I got this worked.

Return to ISAPI_Rewrite 2.x

Who is online

Users browsing this forum: No registered users and 0 guests