How to redirect my wordpress from https to http?

Discussion in 'Apache' started by StarBlossom, Oct 1, 2009.

  1. #1
    Hello,

    I have a flower shop that I use ssl to secure the sign up, order, and payment section. In the footer, which is used for my entire site, has some links to my wordpress pages. When the customers are on the ssl pages on the flower shop, and when they click on the blog pages, it will take them to https, it mess up my blog designs. I have google the topic and found a lot of info on how to redirect a site form http to https, but I can not find any info on redirect a site from https to http.

    Thank you very much for your help.


    Edit:

    Okay, I put this codes in the .htaccess and it works.


    RewriteEngine On
    RewriteCond %{HTTPS} on
    RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
     
    Last edited: Oct 1, 2009
    StarBlossom, Oct 1, 2009 IP
  2. frantech

    frantech Greenhorn

    Messages:
    96
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    20
    #2
    hey there,


    RewriteEngine On
    RewriteCond %{SERVER_PORT} 443
    RewriteRule ^(.*)$ http://www.example.com/$1 [R,L]

    Should do it, but redirecting from SSL isn't the best idea :)

    Thanks,

    Francisco
     
    frantech, Oct 2, 2009 IP
  3. StarBlossom

    StarBlossom Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for the reply. But if I keep the blog within ssl, it just keep giving me security warnings as I have few external links on the footer. If you can, please take a look at www.blossomcart.com/blog. Thanks again.
     
    StarBlossom, Oct 2, 2009 IP
  4. frantech

    frantech Greenhorn

    Messages:
    96
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    20
    #4
    Hey there,

    Well, you could push the entire site via SSL?

    The only other way would be to edit the links/content and force them to not be over SSL :S

    Thanks,
     
    frantech, Oct 2, 2009 IP
  5. StarBlossom

    StarBlossom Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks for the advice.
     
    StarBlossom, Oct 4, 2009 IP