cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 1.x HTTPS to HTTP

Magento 1.x HTTPS to HTTP

I am using following code

 

 

RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !^/healthy-library

# First rewrite to HTTPS:
# Don't put www. here. If it is already there it will be included, if not
# the subsequent rule will catch it.
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# Now, rewrite any request to the wrong domain to use www.
# [NC] is a case-insensitive match
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{REQUEST_URI} !^/healthy-library
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

I want to skip the HTTPS redirect for this url http://www.sitename.com/healthy-library. Using the above code, it redirects to https://www.sitename.com/index.php

Base URL is set to https://www.sitename.com/ to load the entire site under HTTPS.

Any thoughts what could be wrong here?

 

Thank You

 

Think about what you can give , not what you can get !
Tags (1)
1 REPLY

Re: Magento 1.x HTTPS to HTTP

Anyone having similar issue ?

How can we achieve this ?

 

Thanks

Think about what you can give , not what you can get !
Tags (1)