Hi
When we type in www.xyz.co.uk, padlock is not displayed
when we type xyz.co.uk, padlock is displayed.
We have made all required changes in config.php.
What could be the fix please?
Your ssl certificate must support both www and nonwww. Not all ssl certs support both ways. Figure out which way you want it to be and use htaccess to force it that way. Add one of these under the "RewriteEngine On" line of your .htaccess file
To force all non-www to goto www
To force all www to goto non-www
To force all non-www to goto www
Code: Select all
RewriteCond %{HTTP_HOST} ^(?!www\.)(.+) [NC]
RewriteRule ^(.*) http://www.%1/$1 [R=301,NE,L]
Code: Select all
RewriteCond %{HTTP_HOST} ^www\.(.+) [NC]
RewriteRule ^(.*) http://%1/$1 [R=301,NE,L]
I use this:
Code: Select all
RewriteCond %{HTTP_HOST} ^website\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.website\.com$
RewriteRule ^(.*)$ "https\:\/\/www\.website\.com\/$1" [R=301,L]
Who is online
Users browsing this forum: No registered users and 10 guests