how to change form https to http?

Discussion in 'Site & Server Administration' started by learnerabn, Aug 27, 2010.

  1. #1
    hi all,
    i want to change some of pages of a website from https to http
    how can i do this?
    Thanks in advance.
     
    learnerabn, Aug 27, 2010 IP
  2. Shagoon

    Shagoon Notable Member

    Messages:
    596
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    220
    #2
    One way to do this would be using .htaccess rewrite, like this:

    
    RewriteEngine On 
    RewriteCond %{SERVER_PORT} 443
    RewriteCond %{REQUEST_URI} billing
    RewriteRule ^(.*)$ http://yourdomain.com/billing/$1 [R,L]
    
    Code (markup):
    The above code will redirect all traffic on port 443 (which is the https port) in folder called "billing" on your website.
    So if you'll access: https://yourdomain.com/billing/anything.php it will take you to http://yourdomain.com/billing/anything.php

    Hope this helps.
     
    Shagoon, Aug 28, 2010 IP