Posts Tagged ‘friendly url’

How to write friendly URLs?

September 21st, 2009

Search engines always take into account the title text and keywords used in the URL of a web page while determining rankings of that page in search results. The influence may be small but keywords mentioned in the URL do carry some weight.

search title urls

For instance, if all other factors remain same, a web page at abc.com/iphone-review may rank higher for a search query “iPhone review” than, say, xyz.com/best-phone or xyz.com/apple-phone-review because of the keyword iPhone that’s present in the URL.

*Most blogging platforms allow you to write custom URLs (aka post slugs in WordPress). If you are on Blogger, read this hack on how to create your own permalinks.

Now if you’re keen to master the art of writing good URLs that are descriptive and search friendly but without getting into any black hat SEO tricks like keyword stuffing, follow the style of Matt Cutts. He generally uses descriptive titles for blog posts but his URLs are short, neatly written and use only relevant keywords. Some examples:

Title: I do not wish my screensaver to lock my computer, thank you.
URL: disable-screensaver-password

Title: Get your search fix with two videos
URL: free-search-seo-videos

Title:  Protect yourself: get a free credit report
URL: free-credit-report

Title: How to back up your Gmail on Linux in four easy steps
URL: backup-gmail-in-linux-with-getmail

Title: How to stop junk mail
URL: stop-junk-mail

Title: I love my pedometer
URL: best-pedometer

Title: Crap. My Ubuntu machine won’t boot
URL: ubuntu-freeze-no-resume-image

Title: What are the best iPhone applications?
URL: best-iphone-application

The above list is pretty self explanatory and may have given you a good idea but let’s just walk through the important points:

1. Search engines generally ignore common words like “the”, “a”, “are”, “is”, “of”, etc – your URLs will therefore do just fine without them.

2. Phrases like “How to do this” or “Which is the best” or “What are the options” or “When did this happen” make titles attractive but you need not put these words in the URL.

For instance, Matt is using the URL “best-iphone-application” for a page titled “What are the best iPhone Applications.” In another example, the url is “stop-junk-mail” for the article “How to Stop Junk Mail.”

3. If something important doesn’t fit in the page title, put it in the URL. For instance, the URL of a page titled “Get your search fix with two videos” is like “free-search-seo-video” – so you have two new words (”free” and “seo”) in the URL that were not in the title but do help in describing the underlying web page.

4. Use hyphens (or dashes) to separate keywords in URLs though Google can now also read underscores.

Google probably assigns some fixed weight to your URLs which gets distributed across different words used in that URL. Now the weight per keyword will obviously dilute when you have long URLs.

Therefore, it will help if you can manually create URLs with lesser number of keywords but they should also be relevant to the context of your content. It requires a little extra effort at the time of writing your blog post but the may reap good benefits in the long run.

Friendly URLs in Joomla

August 27th, 2009

The following tutorial will provide you with a basic overview to enabling the search engine friendly URLs for the latest release of Joomla 1.5

The Joomla! project team have introduced a number of improvements in Joomla 1.5 from an SEO prespective.

The following outlined below are just some of the improvements.

  • You can now enable search engine friendly URL’s without using Apache Mod_Rewrite
  • You can add a suffix (.html) to the URLs
  • The Global site name, global site meta description or global site keywords are no longer automatically added to each content item
  • Content titles, meta descriptions and keywords are unique to each content item

By default without enabling the search engine friendly URLs functionality Joomla! will generate URLs like this

As you can see above the default URL for the frontpage content item includes the long url with the component name and itemid

To change this and enable the search engine friendly url’s you have two options.

  • Enable the SEF url’s without using apache mod_rewite (for severs which do not support apache mod_rewrite)
  • Enable SEF url’s using apache mod_rewrite (for severs which do support apache mod_rewrite)

To enable the SEF functionaly for Joomla 1.5 you need to complete the following

  1. Login to the administrator area
  2. Choose the Global Configuration option
  3. You will now see the SEO settings as noted below where you can enable or disable specific SEO functionality for Joomla!

SEF Url’s without apache mod_rewrite

To enable SEF Url’s on a server which does not support apache mod_rewrite change the search engine friendly URLs checkbox from No to Yes so it looks like the image noted below.

Save the changes by selecting the SAVE button.

View your web site and the Urls will now look like this

As you can see the component name and itemid is now removed from the Url and replaced with the index.php/frontpage

SEF Url’s using apache mod_rewrite

A majority of hosting companies include mod_rewrite support as part of the web hosting package.

Using this option is the most common approach when using SEF Urls

To enable SEF Urls with Mod_Rewrite you need to complete the following.

  1. Using an FTP client login to web hosting space and access the directory where you have installed Joomla 1.5
  2. You will now see a file called htaccess.txt
  3. Before you enable the SEF Urls you need to rename the htaccess.txt file to .htaccess
  4. When renaaming the htaccess.txt file we recommend you do this using your FTP client and also dont foget to remove the .txt and add the . (dot) before the htaccess so the final will result will be .htaccess
  5. Now you have renamed the htaccess file log into the Joomla 1.5 administrator area and choose Global configuration and from here you will see the SEO settings.
  6. In the SEO settings change the radio buttons for both the search engine friendly URLs and Use Apache mod_rewrite from No to Yes
  7. The settings will look like the screen shot noted below

8. Now select the SAVE button to save your changes. Your URLs will now look like this

As you can see the component name, itemid and index.php extension is now removed from the Url’s providing you with a clean url title format which clearly reflects the content item.

Add Suffix to URLs

Joomla 1.5 also supports the option to add a suffix .html at the end of the content items.

To enable the suffix url option complete the following

  1. From the administrator select global configration and change radio button next to Add suffix to Urls from No to Yes

2.  View your web site again and your Urls will look like this

As you can see from the above the .html suffix is now added to the Url

Unique Meta description and keywords

As noted above the default global meta description or keywords are no longer added to each content item. To make each content item you create include a unique meta description and keywords complete the following.

  1. From the Joomla 1.5 administrator area select the Content menu and Article menu option
  2. Now open the content item
  3. On the right hand column you will see an option called Metadata Information
  4. Expand the Metadata Information box and you will now have the option to add a unique description and keywords which reflects the content you have created.
  5. After making the changes select the Save botton.

If you do not want the Global site name, global site meta description or global site keywords to appear in each content item you need to complete the above steps for each content item you create.

If you do not do this by default Joomla! will automatically add the meta description and keywords from the global settings to each content item.