papai Posted August 21, 2008 Share Posted August 21, 2008 Dear all,I want install SSL for only Admin part (Back office) of Prestashop site, but I don’t know how I would do.Can anyone help me?Thanks Link to comment Share on other sites More sharing options...
Antipode Posted January 14, 2010 Share Posted January 14, 2010 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 More sharing options...
Recommended Posts