Jump to content

Securing the Whole Site


lynnetted

Recommended Posts

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

  • 3 months later...

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 by Bazze (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...