how to change from https to http?

Discussion in 'Apache' started by learnerabn, Aug 28, 2010.

  1. #1
    Hi all,

    I want to change the transfer protocol to http from https in a particular website.
    can any one help on how to change this...

    Thanks in advance..
     
    learnerabn, Aug 28, 2010 IP
  2. tolra

    tolra Active Member

    Messages:
    515
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    80
    #2
    The following will force all the requests to a site to be redirected to the https:// version
    
    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteRule (.*) https://www.example.com/$1 [R=301,L]
    
    Code (markup):
     
    tolra, Aug 28, 2010 IP
  3. learnerabn

    learnerabn Peon

    Messages:
    131
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i want to switch from https:// to http://
    is it possible with this?
     
    learnerabn, Aug 28, 2010 IP
  4. tolra

    tolra Active Member

    Messages:
    515
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    80
    #4
    Sorry, normally everyone wants to go to https, try:
    RewriteEngine On
    RewriteCond %{SERVER_PORT} 443
    RewriteRule (.*) http://www.example.com/$1 [R=301,L]
    Code (markup):
     
    tolra, Aug 28, 2010 IP