-1

i have a site that used to use https://secure.example.com for all secure pages, now the entire site needs to be secure so now ANY url is secure under https://www.example.com

But have loads of legacy CMS content that isn't easy to manage so just wanted to put a rule in that ANY link that had https://secure.example.com/url.... rewritten to https://www.example.com/url....

Spiral Sites
  • 131
  • 11

1 Answers1

0

Tried this

    <rule name="secure to www" stopProcessing="true">
    <match url="https://secure.example.com/(.*)" />
    <conditions>
                    <add input="{HTTPS}" pattern="^(secure)\.example\.com$" />          
    </conditions>
    <action type="Redirect" url="https://www.example.com/{R:1}" />
</rule> 

but if i try this - https://secure.example.com/resp_register.aspx?prod=41&sid=7337826962595

it fails

But this works and diverts to the secure https version - http://secure.example.com/resp_register.aspx?prod=41&sid=7337826962595

Spiral Sites
  • 131
  • 11