How To Redirect http to https with out WWW


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} ^ [NC]
RewriteRule ^(.*)$$1 [L,R=301]
RewriteCond %{HTTPS} !on
RewriteRule ^(.*)$$1 [L,R=301]

htacces null24

So When user type or
All request redirect to


    • i use cloudflare and you can do this with cloudflare with out add any code!
      if not you can buy ssl and use this code

      and if you wanna use this code you must buy ssl or use cloudflare free ssl

      yes make secure for payment and good for ranking


Please enter your comment!
Please enter your name here