how can I disable my Wordpress insecure version of website?

jyciap11

Elite Member
Joined
Apr 11, 2014
Messages
1,650
Reaction score
441
Hi everyone, I have activated SSL on my website and the https version works correctly, the problem is that if I remove the "s" (so I only insert http) the "non-secure" version of my website works. How can I disable the insecure version and leave only the secure one?
 
Make a 301 forward in your .htaccess file to your secured version, should solve your problem.

Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI}
[L,R=301]
</IfModule>
 
Hi everyone, I have activated SSL on my website and the https version works correctly, the problem is that if I remove the "s" (so I only insert http) the "non-secure" version of my website works. How can I disable the insecure version and leave only the secure one?
you can use plugin

https://wordpress.org/plugins/really-simple-ssl/
 
You need to update your WordPress settings, modify the `.htaccess` file, and optionally use a plugin. Start by changing the WordPress and Site Address URLs to `https://` in your WordPress settings. Then, add a redirect rule in the `.htaccess` file to force HTTP to HTTPS. Finally, consider using a plugin like Really.
 
Really Simple SSL plugin will work for you, it redirect visitors to the secured version of your website.
 
and change the website address in Wordpress settings.

If that address is saved as http
Change that to https.
 
Login admin panel with https secure website, and install any SSL plugin and activate.
 
You can use Really Simple SSL plugin if you are unable to do through .htaccess
 
To force HTTPS and redirect all HTTP traffic to HTTPS, update your server configuration (e.g., .htaccess for Apache) to include a redirect rule ensuring all visitors access the secure version of your site automatically
 
Make a 301 forward in your .htaccess file to your secured version, should solve your problem.

Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI}
[L,R=301]
</IfModule>


This pretty much.
 
The Really Simple SSL plugin will function for you, redirecting users to the secure version of your website.
 
Back
Top