Force non-www

Htacess

1 Min Read

May 7th, 2018

By Gregory

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

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

When users visit your site, they will be redirected from http://www.example.com to http://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 www

Htacess
Redirect

April 30th, 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 !