Mardaki

Registered
Oct 31, 2013
2
0
1
cPanel Access Level
Root Administrator
Team,
I install ssl certificate its working fine but I have issue with Redirects Url how can i change Url from https://domain.com to https://www.domain.com

Thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello :)

You can force the use of the "www" prefix for SSL by adding the following entries to the .htaccess file in your public_html directory:

Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^EXAMPLE.COM$ [NC]
RewriteCond %{HTTPS} on
RewriteRule ^(.*)$ https://www.EXAMPLE.COM/$1 [R=301,L]
Thank you.