HTTPS Redirection Problem: How to Solve ?

KHR

Elite Member
Jr. VIP
Joined
Dec 9, 2013
Messages
4,701
Reaction score
1,636
Hello BHW,

Today I Install SSL, I see its working fine for www.example.com & loading with HTTPS, But when I trying without WWW, it's not redirecting to HTTPS version.

I talk to the Hosting Support, the told me to contact my site developer to fix this, I also told me to use plugin as it is Wordpress Site.

Please Suggest me the best plugin you use for Redirecting to HTTPS.

I also found one: Easy HTTPS Redirection. Is this Good and Secure?

My site is under Attack, Some Competitors trying to hack my every day & night, I am getting 100+ email from my site about the Login Attempt Failed & IP Blocking.

So I need your suggesting what you are using to Redirect HTTP to HTTPS.

Thanks
 
I recommend using cloudflare if you think your site is under attack. You set redirection rules for htts there also.
 
I use the following .htaccess to redirect all traffic to https://domain.com

Code:
# Redirect all traffic to non-www https
RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://domain.com/$1 [R,L]
 
Last edited:
Back
Top