The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

RewriteEngine On

Discussion in 'EasyApache' started by Mr.TnT, Feb 5, 2016.

  1. Mr.TnT

    Mr.TnT Member

    Joined:
    Jan 24, 2016
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Saudi Arabia / Lebanon
    cPanel Access Level:
    Root Administrator
    hi

    i've tried to activate RewriteEngine via .htaccess but it doesn't work for me

    i just want to redirects HTTP to HTTPS

    ex: from \ http:// domain - TO - HTTPS:// domain automatically
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    I suggest disabling those entries, and configuring the redirect with the "Redirects" option in cPanel. This automatically adds the correct rules to your .htaccess file.

    Thank you.
     
  3. Mr.TnT

    Mr.TnT Member

    Joined:
    Jan 24, 2016
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Saudi Arabia / Lebanon
    cPanel Access Level:
    Root Administrator
    hi

    i've try it befor

    but it came with this error:
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    What's the specific error message in /usr/local/apache/logs/error_log when browsing your website after using the "Redirects" option in cPanel?

    Thank you.
     

Share This Page