Jump to content

SSL for only Admin part (Back office)


Recommended Posts

  • 1 year later...

Try this :

Add these lines to the .htaccess file at the root of the Prestashop install :

#SSL enforcement for Back Office 
RewriteCond %{HTTPS} !=on
RewriteRule ^admin/.* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]



Don't forget to change on the third line admin by the directory name you renamed your Back Office part.

WARNING, if you generate / regenerate .htaccess file from the Prestasho Back Office -> Tools, it will overwrite anything you've put there !

You do not need to change anything in the Prestasho config for this to work, so you have an SSL crypted Back Office, that's all.

Las thing, this setup works for me.

Cheers

Link to comment
Share on other sites

×
×
  • Create New...