Skip to main content

Posts

Showing posts from August, 2018

Prestashop SEO friendly URL

E-commerce sites must be secure to accomplish online transactions. For making the transaction secure, one of the important elements  is making the site URL secure. Secure URL means the url has https instead of http. We need to add the security certificate on the site to make it secure. Also, we need to configure the PrestaShop for this. After making the URL secure (https), we need to redirect the old URLs to the new ones. For that, we need to add this script on htaccess to redirect all requests to secure URL. SetEnv HTTPS On <IfModule mod_rewrite.c> <IfModule mod_env.c> SetEnv HTTP_MOD_REWRITE On </IfModule> RewriteEngine on RewriteCond %{HTTPS} on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} #RewriteCond %{HTTP_HOST} ^www.gsmshop.ch [NC] #RewriteRule ^(.*)$ https://{HTTP_HOST}/$1 [L,R=301,NC]