Force SSL using 301 Redirect on IIS7 gets 401.1 Error
Posted
by
user2879305
on Pro Webmasters
See other posts from Pro Webmasters
or by user2879305
Published on 2014-06-05T02:41:31Z
Indexed on
2014/06/05
3:40 UTC
Read the original article
Hit count: 516
I've got a site that is using an Execute URL in the 403.4 error page slot that calls a page named forcessl.aspx. Here's the contents of the file:
strWork = Replace(strQUERY_STRING, "http", "https") strWork = Replace(strWork, "403;", "") strWork = Replace(strWork, "80", "") strSecureURL = strWork Response.Write(strSecureURL) Response.Redirect(strSecureURL) Catch ex As Exception End Try End If %>
This particular site gets a 401.1 error if https:// is not added to the url. I have several other sites using the same method that work fine and this one mirrors those in all ways that I can tell (folder permissions, etc). This new site is just a subdomain of the same domain that the other sites are using. The main domain has a wildcard SSL cert.
What else should I check?
© Pro Webmasters or respective owner