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

URL rewrite for ssl subdomain to folder not working

$
0
0

I am looking for a solution to my url rewrite problem.

So my site does not use www and if you put anything else before it, it redirects to Mysite.com. However, now I want to use a subdomain namedhttps://secure.mysite. I currently have a folder called secure where I have code to be used. Below is what I am currently using. Everything works as before, except I now get a 404 error when I try to accesshttps://secure.mysite.com. Any help would be appreciated solving this problem. So just to reiterate.

Objective:

1. There should not be any www before main domain. IE www.mysite.com  = mysite.com

2. Need to have a secure.mysite.com domain. 

 

<rule name="CanonicalHostNameRule1" enabled="true" stopProcessing="true"><match url="(.*)" /><conditions logicalGrouping="MatchAll"><add input="{HTTP_HOST}" pattern="^mysite\.com$" negate="true" /><add input="{HTTP_HOST}" negate="true" pattern="^/secure.mysite.com/upgradenav\.aspx$" ignoreCase="true" /></conditions><action type="Redirect" url="http://mysite.com/{R:1}" redirectType="Permanent" /></rule>


Viewing all articles
Browse latest Browse all 7363

Trending Articles



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