d
Amit DhamuSoftware Engineer
 

Force or Remove WWW from URL

1 minute read 00000 views

Remove WWW

RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.amitd.co
RewriteRule (.*) https://amitd.co/$1 [R=301,L]

Force WWW

RewriteEngine on
RewriteCond %{HTTP_HOST} ^amitd.co
RewriteRule (.*) http://www.amitd.co/$1 [R=301,L]