Hi,
I want to move from my old e-commerce platform and change old urls to new (cs-cart) urls and also to use https on cs-cart server (I already installed SSL Certificate). How it is better to do that?
My idea to accomplish this is:
For 301 redirect I will add in .htaccess after
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteCond %{REQUEST_URI} ^api/(.*)$ [or] RewriteCond %{REQUEST_URI} .*/api/(.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .*api/(.*)$ api.php?_d=$1 [L,QSA] RewriteCond %{REQUEST_URI} \.(png|gif|ico|swf|jpe?g|js|css|ttf|svg|eot|woff|yml|xml)$ [or] RewriteCond %{REQUEST_URI} store_closed.html$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*?)\/(.*)$ $2 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php [L,QSA]
#to add after that, these redirects
Redirect 301 /old url /new_url
But how about moving from http://old_url to https//new_url ? It's ok just to enable in CS-Cart from Settings->Security Settings->Enable secure connection for the storefront?
Cheers,
Chris