Force www

Htacess
Redirect

1 Min Read

April 30th, 2018

By Gregory

To force users to the www version of your site, simply add the following to your .htaccess file:

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

When users visit your site, they will be redirected from http://example.com to http://www.example.com.

Did you enjoy this post ?

Share and let all people receive the benefits

Related Articles

Turn off Directory Listing in .htaccess file

Htacess

August 20th, 2018

1 Min Read

RapidWeaver 404 pages

Htacess
404
Redirect

May 14th, 2018

1 Min Read

Force non-www

Htacess

May 7th, 2018

1 Min Read

Cart is Empty

You haven't added anything, please add something

FormPlus

Forms, function, and so much more.

You want to ask a lot of questions.

Lets Talk !