1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

HTTPS Redirection Problem: How to Solve ?

Discussion in 'Web Design' started by K.H.R, Sep 21, 2015.

  1. K.H.R

    K.H.R Jr. VIP Jr. VIP

    Joined:
    Dec 9, 2013
    Messages:
    3,221
    Likes Received:
    1,023
    Gender:
    Male
    Location:
    BHW
    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
     
  2. nad999

    nad999 Junior Member

    Joined:
    Sep 20, 2012
    Messages:
    147
    Likes Received:
    106
    I recommend using cloudflare if you think your site is under attack. You set redirection rules for htts there also.
     
  3. Galaxian

    Galaxian Junior Member

    Joined:
    Apr 27, 2012
    Messages:
    154
    Likes Received:
    39
    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: Sep 21, 2015