HOW TO REDIRECT HTTP TO HTTPS WITH OUT WWW

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

htacces-nullzones

 

So When user type nullzones.com or www.nullzones.com
All request redirect to https://nullzones.com

 

 

Comments

comments