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!

redirect without htaccess?

Discussion in 'General Discussion' started by Pputnik, Oct 7, 2016.

Tags:
  1. Pputnik

    Pputnik Member

    Joined:
    May 20, 2016
    Messages:
    11
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Poland
    cPanel Access Level:
    Root Administrator
    Hello,

    I want to redirect
    1. www to non-www
    2. http to https

    but without htaccess, in apache config only. I know it's possible, how should I do it properly?

    Reasons: I have certificate for non-www only and I want better performance.

    Thank you.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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