Support » Fixing WordPress » Redirect https:// to http:// with .htaccess

  • Hi

    Anybody know how to redirect a https:// request to http:// using .htaccess, currently got this in my .htaccess file:

    Options +FollowSymlinks
    RewriteEngine on

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    </IfModule>
    # END WordPress

    with the https: request browser is showing un trusted connection alert,

    thanks in advance

Viewing 5 replies - 1 through 5 (of 5 total)
  • with the https: request browser is showing un trusted connection alert,

    It is supposed to. ‘https’ is for connections that require security, like purchases. If it is needed, it is needed. I’m not sure that forcing http connections is the best idea. Why is your site using https? Where are you getting these messages.

    i dont need an ssl certificate for my site,
    this error only shows if a user inadvertently types in https://www.mysite.com instead of http://www.mysite.com

    a long shot, but it happens

    so is it possible to divert it to http: ?

    Yes.

    http://www.google.com/search?q=.htaccess+redirect+https+to+http

    You will break anything that tries to use a secure connection though.

    thanks,

    that was the first thing i tried, but to no avail

    Somewhere in there is your answer. I have never done this, so I don’t have the code to paste in for you, and I don’t have to time to do it for you right now. It should be fairly simple though. Something like this:

    RewriteCond %{HTTPS} on
    RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI}

    Tell me what you’ve done that didn’t work.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Redirect https:// to http:// with .htaccess’ is closed to new replies.