lynnetted Posted May 21, 2012 Share Posted May 21, 2012 We have determined that we want to secure our whole website. There are many reasons for this, but my boss is unrelenting - we need to secure the entire site. Does anyone know if there is a way to configure PrestaShop so it simply creates links as HTTPS://blah blah blah instead of creating links as HTTP://blah and re-directing them to an HTTPS? Thanks! Lynnette Link to comment Share on other sites More sharing options...
Bazze Posted August 25, 2012 Share Posted August 25, 2012 (edited) We have determined that we want to secure our whole website. There are many reasons for this, but my boss is unrelenting - we need to secure the entire site. Does anyone know if there is a way to configure PrestaShop so it simply creates links as HTTPS://blah blah blah instead of creating links as HTTP://blah and re-directing them to an HTTPS? Thanks! Lynnette It seems a bit unnecessary to secure the WHOLE site using HTTPS, but that's up to you. In your TPL files you often use the {$base_dir} to get the base url, instead you can use {$base_dir_ssl} to the HTTPS version. You could also add a directive to your .htaccess file and redirect HTTP requests to the same url but using HTTPS instead. <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} </IfModule> Edited August 25, 2012 by Bazze (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now