Quantcast
Channel: General
Viewing all articles
Browse latest Browse all 7363

Force www with SSL URL Rewrite

$
0
0

Hello im having trouble forcing https with www on our website. Can anyone help me.  I just use to write the code on web.config.

Here is my URL Rewrite as right now

<rewrite><rules><rule name="Redirect to HTTPS" stopProcessing="true"><match url="(.*)" /><conditions><add input="{HTTPS}" pattern="^OFF$" /></conditions><action type="Redirect" url="https://www.site.com/{R:0}" redirectType="Permanent" /></rule> </rules></rewrite>

but it doesn't force www when i try to access the site using https://site.com , anyone can help me with this, I can't find a solution on the net. Thanks


Viewing all articles
Browse latest Browse all 7363

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>