rewrite rules https to http problem
2 posts
• Page 1 of 1
rewrite rules https to http problem
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..
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..
Re: rewrite rules https to http problem
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.
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.
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 20 guests