RSS 

Posts Tagged ‘.htaccess’

Reasons to Rewrite URLs for Search Engine Optimisation

Tuesday, April 29th, 2008

Higher Rankings

Search engines rank webpages due to a variety of calculations and having keywords within your URLs helps increase your rankings for those targeted search terms. This works especially well when many dynamic pages are created which can target a variety of less competitive long tail search terms.

Highlighted Search Terms in Search Engine Listings

When you type in a keyword search into search engines the results returned will include links to relevant webpages. What you will notice is that the keywords that you have typed in will be highlighted within the listings, this includes the display URL. So by having the keywords within your URL, you will help your webpage listing stand out and help encourage a click.

Easier to Read and Remember

Visitors to your webpage will find it a lot easier to read the URL which again is useful when your webpage is listed in search engine results. It will allow users to quickly realise that your webpage is relevant to their search results. Compared to dynamic URLs, rewrote URLs are often a lot easier to remember which will help when visitors wish to return to you webpage whether through search engines, re-typing the URL or browsing their history.

Better Indexing

Search engines can have problems indexing webpages created through a dynamic URL, especially if there are several parameters within the URL. Rewriting a URL gives you control over the structure and allows you to reduce the total parameters or structure the URL to look more like a static URL.

301 Redirect a Parked Domain to Avoid Duplicate Content

Wednesday, March 26th, 2008

A lot of companies who have a website often purchase variations on their domain name to catch visitors who may type in .co.uk instead of .com or may misspell or use a common abbreviation of the company name, whilst also preventing competitors from registering these domain names. Usually, rather than showing visitors a blank (or error) page, the company will park the domain name on their main domain to help point visitors to the company website.

A common mistake is to not 301 redirecting the parked domain name to the main domain name. The problem that arises is that the search engines now see two (or more depending on how many domain names are parked) websites with exactly the same content and will penalise individual pages from each domain which they see as the duplicate page. This will also detract weight from the rankings of the website as a whole. So by adding a 301 redirect from the parked domain to the main website you will not only prevent the previous explained scenario, you will also be telling the search engines that previous pages they have indexed from the parked domain have not disappeared but have moved to the equivalent page on the main website. This should prevent you from losing any rankings that may have been gained through the parked domains.

A common way to 301 redirect is to use a .htaccess file with the following code:

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

This will redirect any of the parked domain name webpages to the main domain name equivalent, for example: http://www.parkeddomain.com/about-us.html would be redirected to http://www.maindomain.com/about-us.html and so on.