Jump to content

Sn1F3rt

Moderators
  • Posts

    1,412
  • Joined

  • Last visited

  • Days Won

    43

Posts posted by Sn1F3rt

  1. Note that it won't redirect you to HTTPS if you try to access it from HTTP. You need to add some code to your .htaccess file in order to achieve that.

    And here goes the code:

     

    (Assuming you have existing code in .htaccess file)

     

    RewriteEngine On

    RewriteCond %{SERVER_PORT} 80

    RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]

     

    And if you don't have (that is you are creating a new file) then:

     

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteCond %{SERVER_PORT} 80

    RewriteRule ^(.*)$ https://yourdomain.com/$1 [R,L]

    </IfModule>

×
×
  • Create New...