http to https
What about htaccess?
The current code is this one. But what do I need to add to redirect to https? Must I change something in the current htaccess?
It really does not have to lose the url in the google results. Thanks for your help.
# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^download/(.*) /index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
RewriteCond %{HTTP_HOST} ^mysite.com$
RewriteRule ^(.*) http://www.mysite.com/$1 [QSA,L,R=301]
RewriteCond %{QUERY_STRING} ^(.*)common/home(.*)$
RewriteRule ^index\.php$ Website Hosting - Mysite.com [L,R=301]-
Hi, Try adding below codes in the .htaccess file to see if it works for you. RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ {HTTP_HOST}%{REQUEST_URI} [R,L] 0 -
Ih 24x7sever. I tried this : RewriteCond %{HTTPS} off RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
It seems to work0 -
Hello, Thanks for the update. It does appear that the solution has been found here. 0
Please sign in to leave a comment.
Comments
3 comments