I have done everything I know of. I made sure config.php has bot http and https directed to https. I also, renamed my httaccess.txt to .httaccess. But when I open my store, all pages are redirected except for my homepage. So i tried to do a redirect with cpanel, and it gives me this message:
There was an error adding the redirect. Redirecting "" to "https://www.mydomain.com/" will cause a redirection loop because "http://mydomain.com/", which is located at "/home/user/public_html/", is above "https://www.mydomain.com/", which is located at "/home/user/public_html/" .
Can someone help me figure out what's going on, please? Thank you
Have you changed anything about the .htaccess file contents?
Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com
When you do the redirect, take off the trailing slash.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Did you really spell the file .httaccess? It's .htaccess (one t).
You want the entire store to be under SSL (https)? Make sure you have all "http:" changed to "https:" in your configure files. In your .htaccess, redirect any http: to https:, and that should do it.
Even better, combine forcing https and using www. in the same redirect:
You want the entire store to be under SSL (https)? Make sure you have all "http:" changed to "https:" in your configure files. In your .htaccess, redirect any http: to https:, and that should do it.
Code: Select all
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule ^(.*)$ https://www.yourstore.com/$1 [R=301,L]
Code: Select all
RewriteEngine On
RewriteCond %{HTTPS} !on [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ https://www.yourstore.com/$1 [R=301,L]
Who is online
Users browsing this forum: julianashcroft and 272 guests