Redirect non www url to www using htaccess

0
Redirect your home page to website root

Add the following to your htaccess file immediately after RewriteEngine on

RewriteCond %{HTTP_HOST} ^mywebsite.com$
RewriteRule ^(.*) http://www.mywebsite.com/$1 [R=301]

Replace mywebsite with the domain name of your website

Get Free Email Updates!

Signup now and receive free offers, discounts & coupon codes

I agree to have my personal information transfered to Mad Mimi ( more information )

I will never give away, trade or sell your email address. You can unsubscribe at any time.

Leave a Reply

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

CommentLuv badge

This site uses Akismet to reduce spam. Learn how your comment data is processed.