How To Redirect http to https with out WWW

1

How To Redirect http to https with out www

This month 3 user In email ask how to redirect all request to https with out www like null24 xD

its easy! you can add This simple and awesome code to your .htacces like me
open your .htacces and add this code:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.null24.net [NC]
RewriteRule ^(.*)$ https://null24.net/$1 [L,R=301]
RewriteCond %{HTTPS} !on
RewriteRule ^(.*)$ https://null24.net/$1 [L,R=301]

htacces null24

So When user type null24.net or www.null24.net
All request redirect to https://null24.net

  • +7536
  • -17
  • 7553 ratings
7553 ratingsX
Like! Dislike!
99.8% 0.2%

1 COMMENT

LEAVE A REPLY