rewrite rules https to http problem

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 1
Joined: 11 Dec 2016, 12:50

rewrite rules https to http problem

11 Dec 2016, 12:56

Hi,
Our environment support http and https and when we are trying to get to Https resources redirect rule return us to http environment.
Example:
RewriteEngine on
RewriteBase
RewriteRule ^/messagecenter/inbox\.asp.*$ /messagecenter.aspx? [NC,L,R=301]

I'm accessing https://domain.com/messagecenter/inbox.asp and i get redirected to: http://domain.com/messagecenter.aspx

what could be the issue?
thanks in advance..

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: rewrite rules https to http problem

20 Dec 2016, 10:40

Hello.

The RewriteRule above could not be a reason of this redirect as if no fully qualified URL provided then redirect is issued to the exact location where the initial request came to, i.e. https://domain.com unless you are using some sort of HTTPS proxy in the middle and the request that comes to IIS is actually an HTTP one.

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 17 guests