Redirect WWW to Non WWW with .HTACCESS

Redirect WWW to Non WWW with .HTACCESS

One of the easiest ways to setup a 301 permanent redirect (your server must be running Apache) from www to non www is by editing the .httaccess.

The .htaccess file is a text file that you add or edit on your site. Basically it adds to or overrides the current server settings. If you have trouble creating a .htaccess file (some text editors won’t create a file named .htaccess) download this example and edit with notepad. You may have to add this code to your current .htaccess or upload it. The .htaccess should be uploaded to the root folder of your web server.

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

How to 301 redirect an old page to a new page?

redirect 301 /old-page.html


Never Worry About Leads Again! Houston SEO Company: Offering Expert Google Ads & Digital Lead Generation Services. Get Red Hot Leads in Your Inbox Daily! TAKE

IT Services

Home / Are you considering IT outsourcing in Houston, TX? Our information technology services have helped many companies from small to large. We work with

Video Production Services

Home / What can we help you with? Well, just about any broadcast or video production project in Houston, TX. Here are some of video

Web Project Management Services

Home / The value of an experienced web design project manager cannot be underestimated. They are responsible for the entire lifecycle of the project, from

Web Analytics

Home / Our professional web analytics consulting services can greatly enhance your online marketing ROI. At SpotOn SEO Services, our team of professional SEO consultants

More SEO & Digital Marketing

Creating a project

Our creative team works on the project, offering its several variants. We make visual presentation and go on working.

Identifying the need

On this stage we communicate with the client to know more about his company and define the goals.

Meet Our SEO Marketing Expert