I want to redirect all http
urls to https
in magento, but for front-endonly. In magento we have a setting to use secure urls for front-end as explained in this link: https://www.siteground.com/tutorials/magento/magento_ssl.htm but that applies to only pages shown after login or checkout.
I have applied following code in my .htaccess file:
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,L]
It is working ok, but it is redirecting Admin panel urls to https
as well. I don't want that, I want only front-end to secure not the admin panel urls.
Please check and advise if we can do such thing in magento?