Dynamic ur ls vs. static urls

639 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
639
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Dynamic ur ls vs. static urls

  1. 1. Dynamic URLs vs. Static URLsThe Issue at HandWebsites that utilize databases which can insert content into a webpage by way of adynamic script like PHP or JavaScript are increasingly popular. This type of site isconsidered dynamic.( http://www.mumbaiseo.co.cc/Dynamic-URLs-vs-Static-URLs.html ) Many websites choose dynamic content over static content. This is because if a websitehas thousands of products or pages, writing or updating each static by hand is amonumental task.There are two types of URLs: dynamic and static. A dynamic URL is a page address thatresults from the search of a database-driven web site or the URL of a web site that runs ascript. In contrast to static URLs, in which the contents of the web page stay the sameunless the changes are hard-coded into the HTML, dynamic URLs are generated fromspecific queries to a sites database. The dynamic page is basically only a template inwhich to display the results of the database query. Instead of changing information in theHTML code, the data is changed in the database.But there is a risk when using dynamic URLs: search engines dont like them. For thoseat most risk of losing search engine positioning due to dynamic URLs are e-commercestores, forums, sites utilizing content management systems and blogs like Mambo orWordPress, or any other database-driven website. Many times the URL that is generatedfor the content in a dynamic site looks something like this:http://www.somesites.com/forums/thread.php?threadid=12345&sort=dateA static URL on the other hand, is a URL that doesnt change, and doesnt have variablestrings. It looks like this:http://www.somesites.com/forums/the-challenges-of-dynamic-urls.htmStatic URLs are typically ranked better in search engine results pages, and they areindexed more quickly than dynamic URLs, if dynamic URLs get indexed at all. StaticURLs are also easier for the end-user to view and understand what the page is about. If auser sees a URL in a search engine query that matches the title and description, they aremore likely to click on that URL than one that doesnt make sense to them.A search engine wants to only list pages its index that are unique. Search engines decideto combat this issue by cutting off the URLs after a specific number of variable strings(e.g.: ? & =).For example, lets look at three URLs:http://www.somesites.com/forums/thread.php?threadid=12345&sort=date
  2. 2. http://www.somesites.com/forums/thread.php?threadid=67890&sort=datehttp://www.somesites.com/forums/thread.php?threadid=13579&sort=dateAll three of these URLs point to three different pages. But if the search engine purges theinformation after the first offending character, the question mark (?), now all three pageslook the same:http://www.somesites.com/forums/thread.phphttp://www.somesites.com/forums/thread.phphttp://www.somesites.com/forums/thread.phpNow, you dont have unique pages, and consequently, the duplicate URLs wont beindexed.Another issue is that dynamic pages generally do not have any keywords in the URL. It isvery important to have keyword rich URLs. Highly relevant keywords should appear inthe domain name or the page URL. This became clear in a recent study on how the topthree search engines, Google, Yahoo, and MSN, rank websites.The study involved taking hundreds of highly competitive keyword queries, like travel,cars, and computer software, and comparing factors involving the top ten results. Thestatistics show that of those top ten, Google has 40-50% of those with the keyword eitherin the URL or the domain; Yahoo shows 60%; and MSN has an astonishing 85%! Whatthat means is that to these search engines, having your keywords in your URL or domainname could mean the difference between a top ten ranking, and a ranking far down in theresults pages.The SolutionSo what can you do about this difficult problem? You certainly dont want to have to goback and recode every single dynamic URL into a static URL. This would be too muchwork for any website owner.If you are hosted on a Linux server, then you will want to make the most of the ApacheMod Rewrite Rule, which is gives you the ability to inconspicuously redirect one URL toanother, without the users (or a search engines) knowledge. You will need to have thismodule installed in Apache; for more information, you can view the documentation forthis module here. This module saves you from having to rewrite your static URLsmanually.How does this module work? When a request comes in to a server for the new staticURL, the Apache module redirects the URL internally to the old, dynamic URL, whilestill looking like the new static URL. The web server compares the URL requested by theclient with the search pattern in the individual rules.For example, when someone requests this URL:http://www.somesites.com/forums/the-challenges-of-dynamic-urls.html
  3. 3. The server looks for and compares this static-looking URL to what information is listedin the .htaccess file, such as:RewriteEngine onRewriteRule thread-threadid-(.*).htm$ thread.php?threadid=$1It then converts the static URL to the old dynamic URL that looks like this, with no onethe wiser:http://www.somesites.com/forums/thread.php?threadid=12345You now have a URL that only will rank better in the search engines, but your end-userscan definitely understand by glancing at the URL what the page will be about, whileallowing Apaches Mod Rewrite Rule to handle to conversion for you, and still keepingthe dynamic URL.If you are not particularly technical, you may not wish to attempt to figure out thecomplex Mod Rewrite code and how to use it, or you simply may not have the time toembark upon a new learning curve. Therefore, it would be extremely beneficial to havesomething to do it for you. This URL Rewriting Tool can definitely help you. What thistool does is implement the Mod Rewrite Rule in your .htaccess file to secretly convert aURL to another, such as with dynamic and static ones.With the URL Rewriting Tool, you can opt to rewrite single pages or entire directories.Simply enter the URL into the box, press submit, and copy and paste the generated codeinto your .htaccess file on the root of your website. You must remember to place anyadditional rewrite commands in your .htaccess file for each dynamic URL you wantApache to rewrite. Now, you can give out the static URL links on your website withouthaving to alter all of your dynamic URLs manually because you are letting the ModRewrite Rule do the conversion for you, without JavaScript, cloaking, or any sneakytactics.Another thing you must remember to do is to change all of your links in your website tothe static URLs in order to avoid penalties by search engines due to having duplicateURLs. You could even add your dynamic URLs to your Robots Exclusion Standard File(robots.txt) to keep the search engines from spidering the duplicate URLs. Regardless ofyour methods, after using the URL Rewrite Tool, you should ideally have no linkspointing to any of your old dynamic URLs.You have multiple reasons to utilize static URLs in your website whenever possible.When its not possible, and you need to keep your database-driven content as those olddynamic URLs, you can still give end-users and search engine a static URL to navigate,and all the while, they are still your dynamic URLs in disguise. When a search engineengineer was asked if this method was considered "cloaking", he responded that it indeedwas not, and that in fact, search engines prefer you do it this way. The URL Rewrite Toolnot only saves you time and energy by helping you use static URLs by converting them
  4. 4. transparently to your dynamic URLs, but it will also save your rankings in the searchengines.For more you may kindly visit http://www.mumbaiseo.co.cc/Dynamic-URLs-vs-Static-URLs.htmlORContact us at 9619240381 or email us at sunilnair2001@gmail.com

×