in SEO by

First, the question; why is eliminating duplicate content important to SEO? The answer is predicated on the conditions that are promoted if duplicate content is allowed in place of a consolidated preference. This tutorial discusses what the function of the .htaccess file and ways you can harness it for the purpose of search engine optimization.

How to Use the .htaccess file for SEO

How to Use the .htaccess file for SEO

Why Eliminating Duplicate Content is Important

Pagination and duplicate content issues create dead ends in search engines, essentially it’s like hemorrhaging relevance as every algorithmic point that gets funneled into a dead end, essentially pools there; and unless rescued or redirected is like potential energy all bundled up with nowhere to go.

This precedence of wastefulness is to be avoided at all costs; you need every iota of link flow you can muster. If you are up against a cunning competitor who understands that a simple consolidation such as eliminating duplicates on a site-wide level, is more than enough to tip the scales when someone else’s page must leave the search engine results page for a specific query and another must rise.

Search engines by their very design embrace and promote competitiveness based upon the scarcity of attention. That scarcity in turn fuels the commodity of ranking higher, which in turn captures a larger percentage of the resource of “consumer attention”, which is the gatekeeper of market share.

That attention can in turn be monetized (based on search engine result page position) and converted into profits through elevator pitches, value propositions, tactful and relevant landing pages and ecommerce. Granted that they can get to a position for a particular keyword in the first place…which is why SEO is a game changer for small business.

By expanding your online reach through keywords and their respective rankings, you create security and can technically eliminate chance by using an existing dynamic (exposure and click thru rates) to monetize time, energy and effort with a tangible monetary gain. However, with duplicate content, your only achieving 50% of each pages potential in search engines, so, it is an economic as well as technical concern.

Creating a Protocol for 301 Redirects

Before you can feed the search engine spiders with content, you need to clean up a few potential SEO errors that could take your website out of the game before even getting started.

One culprit capable of this being duplicate content caused by search engine spiders crawling the http version of your website and www version of your website and attempting to determine which came first or which is preferentially more important.

Fortunately, this temporal default setting for servers can be administered and remedied through using 301 redirects for the canonical and non canonical versions of pages or the domain using the mod rewrite function added via the .htaccess access file.

Stopping the Loop of Producing the Dupe

In all honestly, duplicate content undervalues the proposition of why your content is important and imperative to rise above other copies of snippets and context consolidated on other websites. In other words, duplicate content (something struggling for independence) within a website is frankly not that interesting to search engines.

Clear examples are you can find a home page through typing in:

All of these addresses can be returned because no particular convention or default preference has been clearly established at the server level.

This means that inherently, unless they are consolidated or unified by a form of governance from the server level, that your website is producing multiple variations by default which equate to crawl errors or duplication,  (like content overpopulation based on false positives).

Instead of sitting back passively like an onlooker and just observing this phenomenon, the first thing a webmaster can do is place a rule in place on the server level that redirects all unnecessary secondary or redundant conventions to one unified format (most SEO’s use the http://www.website.com/ convention to prune duplicate content.

The .htaccess file is a file capable of overriding global settings during the hypertext requests between servers, pages and serving that content to browsers.

Since crawlers also use these rules or information, you can aid them in cataloging your website with elements that are more conducive to a unified or SEO Friendly structure. Wikipedia’s definition defines the .htaccess file as such:

“In several web servers (most commonly Apache), .htaccess (hypertext access) is the default name of a directory-level configuration file that allows for decentralized management of web server configuration.

The .htaccess file is placed inside the web tree, and is able to override a subset of the server’s global configuration; the extent of this subset is defined by the web server administrator. The original purpose of .htaccess was to allow per-directory access control (e.g. requiring a password to access the content), hence the name. Nowadays .htaccess can override many other configuration settings, mostly related to content control, e.g. content type and character set, CGI handlers, etc”.

Source: http://en.wikipedia.org/wiki/.htaccess

So, now that you know what it is, you should have some nifty tips and tricks to code it. Instead of writing one here, we have found an excellent resource in which to share that is far more extensive.

Aside from the typical redirect which would involve the following in a Linux based server environment:

For example, the code to redirect the http version of a website to a www format would be:

Create an .htaccess file with following code, this will ensure that all requests to domain.com will be redirected to www.domain.com

The file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]

Please REPLACE domain.com and www.newdomain.com with your actual domain name.

Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite module enabled.

If you do have a Linux server with the rewrite function enabled.

  1. Create a notepad and save a file with the name htaccess.txt
  2. Copy and paste the rewrite rules and conditions (above) and amend your domain information
  3. Save the file.
  4. Rename the file (using Mozilla, or any other ftp program) from htaccess.txt to .htaccess
  5. Uploading the file via ftp (file transfer protocol) to the root folder or subfolder the rule is enforced in, then test it to see how it works….

Our new All in One WordPress SEO Plugin named SEO Ultimate allows you to modify the .htaccess as well as the robots.txt file (another important file that sets precedence for domain level permissions). By using SEO Ultimate, you can directly make changes without the step 1-5 process above, and just insert the code of choice.

Additional .htaccess Tips and Tricks

There is a masterful resource located at http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html which covers dozens of .htaccess rules, conditions and tactics.

As a word of wisdom, be careful when making modifications to this file as one error in syntax can take a site out, until the original or proper syntax replaces it. So, if you are copying and modifying rules just make sure you use all of the characters suggested (so you don’t break it).  Just make sure you have a backup, so, worst case, you can ftp it back if need be to restore the global permissions from the web.

Read More Related Posts
Revisiting Essential SEO Strategies
Taking a page from the SEO playbook; have you ever wondered which SEO strategy is best, tiered site architecture with multiple nodes, flat site architecture (with everything in the root) ...
READ MORE
How to Use SEO to Target Markets and Not Just Keywords
Search engine optimization (SEO) is all about keywords, relationships and traction. Despite the fact that not all keywords are worth pursuing, for those that are, there is a formula to ...
READ MORE
Consumers Surf with Purpose
While the fond memories of yesteryear may have revealed a less savvy online surfer, times have changed and now consumers surf with purpose. Today's online SEO ripples are tomorrows big waves ...
READ MORE
Rankings Slip? Assess Metrics to Minimize SERP Volatility
If you closely monitor your SEO rankings, from time to time a ripple enters the SERP’s (search engine result pages) and shakes things up a bit in the index. You ...
READ MORE
Optimizing Titles and Descriptions for On Page Continuity
Despite our best predictions with SEO, you can never pin-point with accuracy which keywords from a title tag, meta description or combined occurrence of a keyword on a page search ...
READ MORE
Create Content With Purpose
Today's topic is creating content with purpose (adding fresh content on your website) which serves a dual purpose for SEO and user engagement. Both are equally important and necessary ...
READ MORE
SEO for Large Websites Part III
In SEO for Large Websites Part I & Part II, we discussed the importance of starting with a goal in mind and tying it to competitive keyword thresholds, an overview ...
READ MORE
5 Things You Should Know About SEO
With SEO being all the rave right now, here are five things to keep in mind before engaging any SEO campaign. Search engine optimization is about setting realistic goals within respectable ...
READ MORE
Harness the Power of the WWW using International SEO
Are you thinking to narrow or perhaps "too national" when it comes to SEO and augmenting your global presence?  There is a reason for the www in front of your URL, it is ...
READ MORE
Getting Back to Page1
Have you ever checked Google and your most cherished SEO ranking was missing in action? Even more disturbing, there is some unforeseen new website or several new sites in your ...
READ MORE
Revisiting Essential SEO Strategies
Using SEO to Target Markets Not Just Keywords
Consumers Surf with Purpose
My Rankings Fell: Dealing with a Slip in
Optimizing Meta Titles and Descriptions
Create Content With Purpose!
SEO for Large Websites Part III
5 Things You Should Know About SEO
International SEO, Social Media and Website Promotion
SEO Tips for Getting Back to Page 1

About

In 2006, Jeffrey Smith founded SEO Design Solutions (An SEO Provider who now develops SEO Software for WordPress).

Jeffrey has actively been involved in internet marketing since 1995 and brings a wealth of collective experiences and marketing strategies to increase rankings, revenue and reach.

11 thoughts on “Using .htaccess for 301 Redirects, SEO and More
  1. hey dude
    Great stuff! i got a lot of inspiration from this post
    i went through this page four times
    it is very interesting ….
    am learning for social work

    Thanks

  2. softmedia says:

    very informative side for seo

  3. There is some of the best SEO tips on this blog.
    I am consuming as much as I can and will start implementing the strategies in the morning.

    Thanks for the great content

  4. Glad you appreciate the info Douglas. Thanks for visiting.

  5. Igor says:

    Thanks for excellent explanation what it really is :-) What I’m missing is where in SEO ultimate which I have installed can I change it. I completely novice and have no experience in changing code of my web page. I have found where .htaccess is but still I’m missing step by step instruction i.e. do I have to repeat steps 1-5 for all examples you have mentioned, etc. I have few more questions but I’m not sure that can explain them so easily.

  6. Houston says:

    Hey are using WordPress for your site platform? I’m new to the blog world but I’m trying to get started and set up my own. Do
    you need any html coding knowledge to make your own blog?

    Any help would be greatly appreciated!

  7. Citizenship Canada reԛuires ƴօu to aрpear bеfore a judge wɦο ѡould
    test yοur knowledge օf all aspects of Canada.
    Ҭhen, we go and pick up drive througҺ, or lay on thе couch couch ɑnd just kеep on ɗoing wҺat we’ve always done.

    The opportunity to sell yoսrself іn person, tɦe
    interview, iѕ whɑt wwill result іn an offer.

Want to join the discussion?
Feel free to contribute!

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>