Change the Base URL in Settings.php
$base_url = 'https://domainname.com';
and add the code in .htaccess
# Redirect to HTTPS
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Clear the cache and check it
$base_url = 'https://domainname.com';
and add the code in .htaccess
# Redirect to HTTPS
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Clear the cache and check it
No comments:
Post a Comment