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.

Redirect from https to https

Discussion in 'General Discussion' started by Mojolagbe Jamiu Babatunde, Apr 21, 2015.

  1. Mojolagbe Jamiu Babatunde

    Joined:
    Apr 21, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Lagos, Nigeria
    cPanel Access Level:
    Website Owner
    Please can someone help me ! I need to do redirects in cpanel but my site is on https... meaning redirecting from one https page to another https page in the same domain
     
  2. nisamudeen97

    nisamudeen97 Active Member

    Joined:
    Jul 7, 2010
    Messages:
    38
    Likes Received:
    4
    Trophy Points:
    8
    Location:
    Cochin
    cPanel Access Level:
    Root Administrator
  3. Mojolagbe Jamiu Babatunde

    Joined:
    Apr 21, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Lagos, Nigeria
    cPanel Access Level:
    Website Owner
  4. MaxFein

    MaxFein Member

    Joined:
    Jul 29, 2015
    Messages:
    6
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Portland, Oregon, USA, Earth
    cPanel Access Level:
    Root Administrator
    Code:
    RewriteCond %{HTTP_HOST} mydomain\.com$ [NC]
    RewriteCond %{REQUEST_URI} ^/?index2\.php [NC]
    RewriteRule ^/?index2\.php(.*)$ https://%{HTTP_HOST}/inde3.php$1 [R=301,L]
    You are going to want to read some apache docs before trying to use this... I'm kinda in a rush today and you didn't do the best job in the world describing your need =)

    I'd also recommend Rich Bowen's 'Mod_Rewite and Friends' as an excellent little book (you can get it free on his website =)

    Cheers, Max
     
Loading...

Share This Page