url rewrite
2 Topicsusing IIS URL Rewrite module for HTTP to HTTPS
I have installed the URL Rewrite module in IIS 10 to redirect HTTP calls to HTTPS, and I have attempted to set up the redirect but have not gotten it working on one server. Here is the issue: Server1 with IP 1.1.1.1 is running IIS with an https enabled website. An outside DNS has assigned gohere.com to IP 1.1.1.1. When users attempt to get to http://gohere.com the connection times out and it is not redirected to https://gohere.com Accessing https://gohere.com works without an issue. Here is the rewrite code from the web.config file. <rewrite> <rules> <rule name="HTTP to HTTPS" patternSyntax="Wildcard" stopProcessing="true"> <match url="http://gohere.com*" /> <conditions> <add input="{HTTPS}" pattern="^OFF$" /> </conditions> <action type="Redirect" url="https://gohere.com" appendQueryString="false" /> </rule> </rules> </rewrite> I have also tried using match url=".*" Any ideas on what might be causing the issue? Or something to try to get it working? Thanks! Jim3.3KViews0likes2CommentsIIS Redirects to multiple subfolders then errors when I use different rule name
I have a very strange issue which I couldn't figure it out. In the IIS under URL rewrite module I have a redirect rule, which works absolutely fine when it is under specific rule name, however, when I change rule name it redirects to so many subfolders. For example, when I set my rule name "Redirect to signup page" and access the URL example.com/companyName/login it redirects me to example.com/subFolder/companyName/login which is what I wanted. However, as the rule name doesn't reflect what the redirect rule doing in here so I want to keep the rule name as "Redirect to login page". When I change the rule name it doesn't work and accessing the same url redirect me to example.com/subfolder/subfolder/subfolder/subfolder/...(many repetition)..../subfolder/companyName/login this issue is almost similar to this question, but, the solution in there doesn't work for me.495Views0likes0Comments