Helicon Rule Issue for HTTPs to HTTP conversion
1 post
• Page 1 of 1
- Manikandan
- Posts: 2
- Joined: 24 May 2017, 17:20
Helicon Rule Issue for HTTPs to HTTP conversion
Recently we have installed SSL in our IIS box and we have to make sure certain URL's which matches the pattern (.*XXYYZZ*.*)has to redirect from HTTP to HTTPS and which does not matches the pattern (.*XXYYZZ*.*) has to be converted from HTTPs to HTTP.
Issue:
1. We use the following rule to convert HTTP to HTTPS, it is converting correctly
## Redirect http to https
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:Host} ^(?xxxxx\.)(.*).*$
RewriteCond %{REQUEST_URI} ^(.*XXYYZZ*.*).*$ --> (if the incoming request contains en_gl then we have to convert to HTTPS)
RewriteRule ^/(.*)$ https:// %{HTTP:Host} /$1 [R=302,L]
But the problem here is once it convert the URL to https, it is always opening the site as https even if we request http site.
2. While we use the below rule to convert HTTPS to HTTP, we were able to see the URL converted from HTTPS to HTTP in Rewrite.log, but the browser still stays same with HTTPS showing the message as there are multiple redirects. We cross checked we do not have any other rule to run in to multiple redirects, but getting that message.
## Redirect https to http
RewriteCond %{HTTP:Host} ^(?xxxxx\.)(.*)
RewriteCond %{HTTPS} ^(?!off).*
RewriteCond %{REQUEST_URI} !^/(.*XXYYZZ*.*) --> (if the incoming request does not contains en_gl then we have to convert to HTTP)
RewriteRule (.*) http\://$1$2 [R=301,L]
Any technical guidance from the community will be much helpful and greatly appreciated
Issue:
1. We use the following rule to convert HTTP to HTTPS, it is converting correctly
## Redirect http to https
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:Host} ^(?xxxxx\.)(.*).*$
RewriteCond %{REQUEST_URI} ^(.*XXYYZZ*.*).*$ --> (if the incoming request contains en_gl then we have to convert to HTTPS)
RewriteRule ^/(.*)$ https:// %{HTTP:Host} /$1 [R=302,L]
But the problem here is once it convert the URL to https, it is always opening the site as https even if we request http site.
2. While we use the below rule to convert HTTPS to HTTP, we were able to see the URL converted from HTTPS to HTTP in Rewrite.log, but the browser still stays same with HTTPS showing the message as there are multiple redirects. We cross checked we do not have any other rule to run in to multiple redirects, but getting that message.
## Redirect https to http
RewriteCond %{HTTP:Host} ^(?xxxxx\.)(.*)
RewriteCond %{HTTPS} ^(?!off).*
RewriteCond %{REQUEST_URI} !^/(.*XXYYZZ*.*) --> (if the incoming request does not contains en_gl then we have to convert to HTTP)
RewriteRule (.*) http\://$1$2 [R=301,L]
Any technical guidance from the community will be much helpful and greatly appreciated
1 post
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 4 guests