WordPress.org

Ready to get started?Download WordPress

Forums

Redirect https:// to http:// with .htaccess (6 posts)

  1. ziggy909
    Member
    Posted 1 year ago #

    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

  2. s_ha_dum
    Member
    Posted 1 year ago #

    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.

  3. ziggy909
    Member
    Posted 1 year ago #

    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: ?

  4. s_ha_dum
    Member
    Posted 1 year ago #

    Yes.

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

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

  5. ziggy909
    Member
    Posted 1 year ago #

    thanks,

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

  6. s_ha_dum
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic