yuankai / urlrewritefilter

Automatically exported from code.google.com/p/urlrewritefilter
Other
0 stars 0 forks source link

How to define rule for Https://domain.com to https://www/domain.com #143

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I would like to redirect following requests 

http://domain.com
www.domain.com
https://domain.com 

To 
https://www.domain.com 

By using following rule I am unable to achieve 
https://domain.com To https://www.domain.com redirection

I am using following rule - 
<rule>
        <condition type="scheme" operator="notequal">^https$</condition>    
        <condition name="host" operator="notequal">^www.domain.com</condition>      
        <condition name="host" operator="notequal">^$</condition>               
        <from>^/(.*)</from>
        <to type="permanent-redirect" last="true">https://www.domain.com/$1</to>
    </rule> 

Please let me know what wrong I am doing. 

Thanks

Original issue reported on code.google.com by gagan...@gmail.com on 18 Jun 2013 at 1:42

GoogleCodeExporter commented 9 years ago
I'm learning and having a try with this too. Please let me know if you got the 
answer.
Thanks. zhonghuafy@gmail.com

Original comment by zhonghuafy on 18 Nov 2013 at 9:36

GoogleCodeExporter commented 9 years ago
I'm also experiencing this issue...any help would be appropriated.

Original comment by mark.a...@gmail.com on 3 Jun 2014 at 8:51