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]