0

I load stores with htaacess rules like below:

RewriteCond %{HTTP_HOST} .*domain\.pl [NC]
RewriteRule .* - [E=MAGE_RUN_CODE:storepl]
RewriteCond %{HTTP_HOST} .*domain\.pl [NC]
RewriteRule .* - [E=MAGE_RUN_TYPE:website]

How to update above rule to exchange all user http URL's automatically to https ?
I added https prefix to unsecure Magento base URL and it works but I'm not pretty sure if its the best option ?


Could somebody help with that rule to force https ?

1

If you want to direct all your visitors to secure urls, you need to go to System > Configuration > Web > Unsecure.

There, you can set a URL with https in "Base URL" option. It should work without making changes to your .htaccess file.

1
  • That's what I did :) but I thought htaacess will be better – sellio Apr 7 '15 at 13:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.