Redirect from www to non-www

Do you want your website to automatically redirect from www to non-www?

Add the following code to your htaccess file

RewriteEngine On
RewriteCond %{HTTP_HOST} www.yourwebsitehere.com
RewriteRule (.*) http://yourwebsitehere.com/$1 [R=301,L]

Its done. Your website will now be redirected.

3 thoughts on “Redirect from www to non-www”

  1. Pingback: lexapro attorney

Leave a Comment

Your email address will not be published. Required fields are marked *

Tweet
Share
Share
Pin