SEO Friendly URL Rewirting

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Shalini Bhalla
    New Member
    • Dec 2007
    • 190

    SEO Friendly URL Rewirting

    I am having a site http://bhoomiandbhavan.com/index.php ( under construction ) ,

    I want to know that how can i write the SEO Friendly URL Rewriting code for listings ?
  • dlite922
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    #2
    Search Engines are smart these days, you don't need friendly URL to search engines, you need friendly URLs to the user.

    To search engines, these two are the same:

    ...com/viewproperty.ph p?id=123
    ...com/viewproperty/id/123

    Just use dashes instead of underscores, avoid long query strings (e.g. from a form submission)

    As far as the method to do it? the most popular one is Apache's (or your webservers) mod_rewrite function. If this site is hosted, your host may limit if you can do this or not.


    Dan
    Last edited by Atli; May 22 '10, 02:11 AM. Reason: You spelled mod_rewrite wrong ;-)

    Comment

    • Atli
      Recognized Expert Expert
      • Nov 2006
      • 5062

      #3
      Yep, modern search engines actually prefer to have the original query string, rather than a rewritten URL. When you rewrite the URL, you are basically "hiding" information, and in some cases making it impossible for the crawler to figure out what the available information means.

      For example, if you have this URL:
      - http://example.com/article.php?id= 123
      A search engine will be able to deduce the following:
      • This is a PHP page; dynamically generated content. (This may affect caching or re-crawl rates, or any number of other things.)
      • The current page is tagged with an "id" of "123". (Useful for obvious reasons.)


      If you were to rewrite that into this:
      - http://example.com/article/id/123/
      You are basically:
      • Giving the false impression that this is a static page (meaning; not modified by query string parameters).
      • Hiding what the number "123" actually is. It would simply be considered a directory name; a sub-directory of the "id" directory, rather than a parameter linked to the "id" keyword.


      It is best for the search engine (and thus your rating) if you just use the query string as it was meant to be used, rather than try to "trick" the search engine into thinking that a dynamic page is static. (Static pages rank no higher than dynamic once.)

      However, you would be wise to limit the query parameters to two or three values, and try not to mix the order of the parameters to much. It's also best to use proper words, rather than single letters or illegible abbreviations. (Both search engines and users may be able to determine context based on keywords. Like, the parameter name "desc" would infer a description, where the letter "d" may not.)

      Comment

      Working...