IIS 10 giving internal error when attempting to redirect to HTTPS

IIS 10 giving internal error when attempting to redirect to HTTPS - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the IIS 10 giving internal error when attempting to redirect to HTTPS error on your web browser. Problem :


I've looked at innumerable resources on how to set up a HTTP to HTTPS Redirect, but still it doesn't seem to work. Using IIS10 and the URL Rewrite module, here are my steps:




  1. I've generated a Self-Signed SSL Cert (this part is self-explanatory and I feel like it doesn't need attention)

  2. I've added a new binding to port 443 for HTTPS and told it to use the cert generated in step 1.

  3. I've set my rules as in the picture below.



Redirect rule



Browsing to that page gives the generic IIS 'internal error' message. IIS logs say it's a 404 error when trying to access the IP at the default port 80. Going directly to port 443 works fine, it just won't automatically redirect. I'm not really sure what I'm doing wrong here.



It may be worth considering that I'm using PHP, but I don't think that affects anything in this case.


Solution :

The problem appears to be fixed. My only issue was making it a rewrite instead of a redirect, which Stephen Ostermiller helpfully pointed out are two completely different things.



Though I could swear this wasn't the case not two hours ago, it appears to be working fine now. Closing this out when the site allows me to.


We hope that this article has helped you resolve the redirects, https, iis error in your web browsers. Enjoy browsing the internet uninterrupted!

Comments

Popular posts from this blog

How to redirect to any domain [duplicate]

"302 found" for index page bad for SEO?

Create redirect from url like www.example.us/?p=100&option=