Skip to main content

.htaccess Redirect for SEO

Search Engines like to see a website's keywords embedded into the URL. So if I'm selling energy saving washing machines, most SE's, I am told, (Google included) like to see a URL that looks like:
www.energy-saving-washing-machines.com
But if you don't have access to that fancy domain name, then the next best chance is to use something like:
www.whatever-domain-name-you-have.com/energy-saving-washing-machines
This can be setup using a .htaccess file in the document root directory of the www.whatever-domain-name-you-have.com website. Simply create a .htaccess file and drop in the redirection directive as follows:
Redirect /energy-saving-washing-machines "http://www.whatever-domain-name-you-have.com"
So anybody clicking on http://www.whatever-domain-name-you-have.com/energy-saving-washing-machines will be redirected to http://www.whatever-domain-name-you-have.com/

No need to restart/reload Apache

For any such redirections to start working, Apache doesn't need to be reloaded. Just updated the .htaccess file, save it (and make sure it has public read permissions).

Regular Expression Match with RedirectMatch

In case a regular expression match is needed, for example we wish to match both energy-saving-washing-machines and energy-saving-cars, the RedirectMatch directive can be employed instead of Redirect. Use it like:
RedirectMatch energy-saving-* "http://www.whatever-domain-name-you-have.com"
I find this particularly useful for performing matches for keywords and their plurals (ex. http://www.confero24.com/cable and http://www.confero24.com/cables, both of which are relevant keywords from SEO perspective.

Todo

Do search engines have a preference on if the Redirect directive is used with Permenant or Temporary (default)?

Resources

Excellent .htaccess resource: http://www.htpasswdgenerator.com/apache/htaccess.html#8

Comments

Popular posts from this blog

Paypal's Ridiculous Business Practices

In Q3-2005 we discovered the power of online sales and started to market Wapsol's products extensively online. Just as importantly we decided to get into the trading business for WLAN accessories (antennae, cable, connectors etc) which entails buying from manufacturers and selling on online-retail. Needless to say ebay's 26 worldwide markets were lucrative points of sales.

We used Paypal for collecting most of payments from customers outside Germany. The numbers ticked up fast and we were hecticly building up infrastructure for shipping, online-support, product-portfolio and payment-systems.

One morning as I woke up in Germany I found that Paypal decided to lock up our account without any specific reason. There were no disputes or complaints from buyers or anything that suggested provocation. They just locked it. In it a few thousands of dollars of cash-flow and the account was listed as a favored payment option for some 100 pending auctions - now customers couldn't pay for …

The Dream of the Information Age

If this beauty of a device meets it's mission of being owned by every kid on the planet, we are looking to a new dimension of the Information Age.
For full profile of the device, visit BBC's technology page.

SnagIT Problem Solved! (Hangs for minutes)

Here's the solution to the SnagIT sluggishness (hangs for several minutes)
I would try first turning off the magnifier window under tools > program preferences > program options. Uncheck the box to show magnifier windows. Click apply > ok and then try the capture again.Check your security software and make sure that Snagit is set as a safe application. A security program that consistently scans the process will cause a very slow response like you are seeing.Please also check your printers per this article:Answer Title: Slow SnagIt startupAnswer Link: http://techsmith.custhelp.com/cgi-bin/techsmith.cfg/php/enduser/std_adp.php?p_faqid=742Finally, please review the steps here and try these as well:Answer Title: SnagIt crashes or hangs when launchedAnswer Link: http://techsmith.custhelp.com/cgi-bin/techsmith.cfg/php/enduser/std_adp.php?p_faqid=137Let me know what happens.