tjg184 / urlrewritefilter

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

How to use for subdomain redirects. #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I wasn't sure where to post this, but it was difficult to find in the 
documentation. 

So, I had the need to redirect subdomains on a SaaS server. (ie, customers have 
myname.mysite.com ).  And If you have multiple subdomains, like mysite1.com and 
mysite2,com, 
you may have the situation like I did were your security certificate is only 
one one domain.  So, 
you would like to take all requests to:
http://myname.myUnsecureDomain.com => https://myname.mySecureDomain.com

This can be done with the following rule:
    <rule>
        <name>Redirect forum</name>
        <condition name="host" operator="equal">^(.*).myunsecuredomain.com$</condition>
        <from>^(.*)$</from>
        <to type="permanent-redirect">https://%1.mysecuredomain.com$1</to>
    </rule> 

Original issue reported on code.google.com by goldcoug...@gmail.com on 19 Jul 2009 at 3:56

GoogleCodeExporter commented 9 years ago
Invalid - should be closed. Please, post all such stuff on the mailing list.

Original comment by avl...@gmail.com on 10 Aug 2009 at 6:26

GoogleCodeExporter commented 9 years ago

Original comment by tuc...@gmail.com on 10 Aug 2009 at 9:04

GoogleCodeExporter commented 9 years ago
Issue 41 has been merged into this issue.

Original comment by tuc...@gmail.com on 10 Aug 2009 at 9:04