Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

redirects Url issue

Discussion in 'General Discussion' started by Mardaki, Oct 31, 2013.

  1. Mardaki

    Mardaki Registered

    Joined:
    Oct 31, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    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
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Mardaki

    Mardaki Registered

    Joined:
    Oct 31, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks Mate
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice