• Skip to main content

WP Republic!

High Profile WordPress Security Services by WP Republic!

  • Blog
  • Malware Removal
  • Fix Request
  • Security Plans
  • About us
    • FAQ
    • Contact
    • Privacy Policy
    • Terms of Service

Aug 31 2018

WordPress HTTP to HTTPS Auto Redirect

As of the beginning of July 2018, Google started forcing site owners to use HTTPS encryption by flagging non-HTTPS sites as “Not secure” when browsed with Google Chrome(v. 68). This alone is a great motive to start converting your HTTP setup into an HTTPS one. This would cost you a bit in the past, but now you can use LetsEncrypt certs for free. Of course, you still need to set up the SSL inside your WordPress site; we will create a simple guide about this, so make sure you follow our upcoming posts and tutorials.

When your site works under https, one final step: Make sure your old and new visitors use it instead of HTTP. That is to set up an htaccess redirect so that anyone visiting your WordPress site’s no https version (for example, http://wprepublic.com) will be sent to the https one.
To do this go on and edit your htaccess file using your file manager editor or your HTML editor and add the following line at the end:



# HTTP to HTTPS redirect

RewriteEngine On

RewriteCond %{HTTPS} off

RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Then save the file and check if your site’s HTTP version redirects to the https one.

If you don’t have the time or the desire to start editing some of your core site files like .htaccess, you can take a look at our WordPress HTTP to HTTPS migration service, where we will set up your SSL, audit your WordPress website and convert your HTTP to HTTPS for $30 per site.

Written by WP Republic! · Categorized: Blog · Tagged: htaccess, http to https, redirect, WordPress

SUBSCRIBE TO OUR GOODIES LIST!

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

© 2025 · Security Services · WP Republic!
This website is not affiliated with or sponsored by Automattic or the WordPress Open Source project