Acheter Priligy Viagra Suisse Acheter Levitra Orodispersible Acheter Cialis 5mg Cialis Suisse Acheter Levitra Acheter Propecia Levitra Vendita Comprare Propecia Acquisto Female Viagra Acquisto Cialis Jelly Viagra Super Active Levitra Originale Viagra online Levitra Compresse Divisibili Disfunzione Erettile Ecografia Comprare Priligy Viagra Generico Comprare Brand Cialis Kamagra Oral Jelly Viagra Originale 100mg

Non-www Redirects & More

Mar 23, 2009   //   by Alex Becker   //   No Comments

This is a quick tutorial showing you how to redirect non-www urls, i.e. to

First of all, let me emphasize why it’s important to have uniform url linking structure. The easiest way to explain this is to break it down to you in the simplest of terms. Search engines like google, yahoo, and msn think that and are two completely different pages, therefore, not having non-www redirects implemented will give you an inherent duplicate content penalty; that is arguably the biggest search engine traffic killer.

Before I begin this tutorial I should warn people that I’m currently using an Apache based server and thus will be using an .htaccess file that will tell the server to redirect visitors and search engines alike that both non www urls and www urls are the same page. Some servers require different steps to properly setup a non-www redirect. For more information on non-Apache www redirects please click here.

Your first step is to see if you have an .htaccess file already on your web server. If you do, download it to your desktop and open it with your favorite editor. If you do not have an .htaccess file, open up your favorite editor and create a new file and save it as .htaccess – with the period! Now, copy the code pasted below exactly as written below, replacing all instances of thecreditco with your websites url. OK, so now that you know why we are either adding code to our original .htaccess file or creating a new one, let’s get down to the actual code.

Here is the actual .htaccess code if you are interested in downloading my actual .htaccess file, please click here.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^
RewriteRule (.*)$1 [R=301,L]
ErrorDocument 404

You will notice that I have also included a line of code for a 404 redirect to my main website (the 4th line of code). For those of you who are unfamiliar with 404 redirects, they tell the server to redirect users to the designated 404 redirect url or the custom 404 redirect page. For example, does NOT exist, but if you click that url, it will redirect you to my home page instead of a broken page. It’s a good idea to have it in your .htaccess file!

I told you it was a simple tutorial and I think it is. I’m assuming that if you are interested in learning www redirects and 404 redirects you are familiar with basic web publishing and server management. If you have any questions, don’t hesitate to ask!

Leave a comment

About Me

I have been involved in digital marketing since 2004 and have consulted with over 100 companies including Burger King, ScoreBig, ReachLocal, Hyundai and many more.

I help my clients by empowering them to improve three-fold:

  • First, I make them make more money from the traffic they already have through revenue and business optimizations.
  • Second, I help them convert the traffic they already have at the highest rates possible based upon their primary and secondary conversion goals.
  • Third, I drive incremental traffic to their website through a variety of sources, organic and paid.


cialis generique Acheter Cialis acheter Viagra Cialis Original Viagra Soft Viagra Original Super Kamagra Viagra Super Active Kamagra viagra en ligne Propecia Priligy Viagra kopen dapoxetine kopen Priligy kopen Cialis Daily Viagra Super Active Kamagra Gold Propecia kopen Kamagra kopen levitra kopen in belgie Cialis Softe Levitra kopen
zapatillas de moda Adidas Originals Adidas Yeezy nike air force polos lacoste Adidas Stan Smith Zapatos nike Adidas Gazelle pulseras pandora zapatillas converse ropa hollister Zapatillas puma zapatos jordan nike shox nike air max mujer