Creating Clean URLS in Magento

We have all visited web pages that have some terrible URLs. They often have URLs that look like this:

Often these URLs are auto created, meaning that the person who wrote the article had no control over what the URL would be. The content management system they were using simply created the URL automatically. Users have no control over this. It's not usually a major concern unless you want to tell someone the URL over the phone.


Such URLs can be problematic for search engines to read. The shorter the URL the better.


Web Crawlers, are small programs that search engines send out to gather information about websites.  They only read a certain amount of pages per website, this is called "The Crawl Budget".

Imagine that your website has 1000's of pages, a crawler can only read a certain amount of them. It may have instructions to only follow one or two levels in a category structure. So, let's look at the URL used in the previous example: This is the top level domain, or the TLD.

/categories this is the first Top level category.

Next are sub-categories, each backslash denotes a category inside the previous one.






Only then do we get to the actual article murray-crashes-out-us-open2006.php

This could mean that the crawler doesn't even read as far as the actual article.


Create better URLS for e-Commerce.

- If possible,  try to limit the number of sub-categories you use to 2 subcategories.

Any further sub-categorisation can be provided by attributes such as colour, type, brand or material.

To better assist both Web crawlers and human customers, keep URLs as short and snappy as you can.

Category Example:

Product Example: 


When you import stock lists or create new products the URLs will auto-generate. so you must edit the URLs as soon as you can. This will ensure that your inventory has the best, and most logical URLs possible.

Fig 1:

Tip: delegate this task to a junior team member.

Have more questions? Submit a request


Please sign in to leave a comment.