Simple SSL Redirects

plugin banner

Lightweight plugin to ensure access via SSL/HTTPS. Uses 301 (permanent) redirects for SEO benefits.

Author:Blucube (profile at wordpress.org)
WordPress version required:4.6
WordPress version tested:6.5
Plugin version:1.1.2
Added to WordPress repository:02-02-2023
Last updated:18-03-2024
Rating, %:0
Rated by:0
Plugin URI:
Total downloads:1 152
Active installs:100+
plugin download
Click to start download

If your site has an SSL certificate you might find that you can access the site via both SSL (https) and non-SSL (http) URLs. This is a bad idea for security, and for SEO, as it can look like duplicate content on different URLs.

The answer to this is to redirect requests to non-SSL (http) URLs over to their SSL (https) equivalents using something called a 301 redirect. This tells the client (and search engines) that the resource they are looking for should always be accessed over SSL. This plugin offers two methods to achieve this:

  • By intercepting WordPress pages at header time, and if they are not already being requested over HTTPS sending a 301 redirect header, or
  • By adding mod_rewrite rules in the .htaccess file to redirect all requests to their HTTPS equivalents using 301 redirects.

Optionally, this plugin can also set HSTS headers for you, and make sure that all requests use the same hostname (i.e. fixing the issue where many sites can be accessed using both www. and non-www. URLs).


FAQ
ChangeLog