• SEOnext India
  • SEOnext USA
  • SEOnext Australia
  • SEOnext UK

Call us on   0845 539 0642

Get an SEO Friendly URL with URL Rewriting

By Matthew on Thursday, January 6th, 2011 at 12:34 pm | Comments (0)
 
                            Share              

It is only a known fact that all search engines favour indexing static URLs rather than dynamic URLs,

Static URL: — http://www.example.com/catalog/cloth/0010/

Dynamic URL: — http://www.example.com/catalog.asp1category=cloth&prodID=0010

Static URLs are always good for search engine indexing and attract decent traffic. On the contrary, Dynamic URLs are generated by Database driven websites, which generate content with help of dynamic scripts like PHP or JavaScript.  Mostly websites, or rather portals, having thousands of pages choose a dynamic website over static website.

Risk with Dynamic URL: – Dynamic URLs were very risky with SERP point of view, because they can cause Canonical URL Issue, and hence are not favoured by Search Engines. Typically Static URL Rank in SERP is better than that of Dynamic URL, because they get indexed quicker than the latter. Static websites are much easier for end users to view and understand, which increases the click count and average website time.

A Search Engines always want to index unique URLs, they disregard the URLs after a specific number of variables such as ? & =;

For Ex.:–

http:// www.example.com /forums/thread.php?threadid=125&sort=date
http:// www.example.com /forums/thread.php?threadid=670&sort=date
http:// www.example.com /forums/thread.php?threadid=139&sort=date

All three URL are three different pages  but if search engine cut off the URL after ? mark then

http:// www.example.com /forums/thread.php?
http:// www.example.com /forums/thread.php?
http:// www.example.com /forums/thread.php?

Another Issue with dynamic websites is that they generally don’t have any keywords in URL, which is quite important from an SEO point of view.

Solution: — Now What! What you will have to do to resolve this problem? Should you recode every single page of your site into static site?  Is it a feasible solution?  Here’s what you can do:

MOD_REDIRECT:–

Write the code in .htaccess  and replace the same on www.example.com /forums

Options +FollowSymLinks

RewriteEngine on

RewriteRule thread-threadid-(.*)-sort-(.*)\.htm$ thread.php?threadid=$1&sort=$2

Notice the change in the URL:–

Before:-

http:// www.example.com /forums/thread.php?threadid=125&sort=date

After:-

http:// www.example.com /forums/thread-threadid-125-sort-date.htm

Solution For Directory Type URL :–

Write the code in .htaccess  and replace the same on www.example.com /forums

Options +FollowSymLinks

RewriteEngine on

RewriteRule thread/threadid/(.*)/sort/(.*)/ thread.php?threadid=$1&sort=$2

RewriteRule thread/threadid/(.*)/sort/(.*) thread.php?threadid=$1&sort=$2

Before:-

http:// www.example.com /forums/thread.php?threadid=125&sort=date

After:-

http:// www.example.com /forums/thread/threadid/125/sort/date/

Recoding every page may not be the best of the solutions. Using minimal scripts, you can easily make your dynamic URL search engine friendly and this will help with your SEO .


Leave a Reply


For more information or to request
a quote please ring us today on
Give us a call 0845 539 0642

A small selection of great companies we work with - your logo could be here