URL Rewriting - Search Engine Friendly URL’s - Part 2

by Scott Allen

You probably know by now that dynamic web sites have a challenge in search engine optimization because they often use dynamic url’s with information carried from page to page in query strings. (http://www.yourdomain.com/index.php?id1=value1&id2=value2&id3=value3)

Through proper use of .htaccess and mod_rewrite, you can turn your ugly dynamic url’s into search engine friendly (and user friendly) url’s.

[The following is a re-post from http://www.seochat.com/seo-tools/url-rewriting/ ]

Static URLs are known to be better than dynamic URLs for a number of reasons:

  1. Static URLs typically rank better in search engines.
  2. Search engines are known to index the content of dynamic pages much more slowly than that of static pages.
  3. Static URLs look friendlier to end users.

Example of a dynamic URL
http://www.yourdomain.com/profile.php?mode=view&u=7

This tool helps you convert dynamic URLs into static looking HTML URLs.

Examples of the above dynamic URL re-written using this tool:
http://www.yourdomain.com/profile-mode-view-u-7.html
or
http://www.yourdomain.com/profile/mode/view/u/7/

Note
You will need to create a file called “.htaccess” and paste the code generated into it. Once you have created the .htaccess file simply copy it into your root web directory.
URL rewriting of this type will work ONLY if you are hosted with Apache Server.

Security Note
To prevent any random hacker from viewing your .htaccess file, it is highly recommended that you add the following code to the end of it:

<files .htaccess>
order allow,deny
deny from all
</files>

More to come. For more info, read my previous post on URL rewriting and search engine friendly url’s.

Additional Info:
Rewrite URLs on Apache Web Servers Using mod_rewrite

Tags:
| | | | | | | |

Bookmark, Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • StumbleUpon
  • del.icio.us
  • Sphinn
  • Digg
  • Reddit
  • Netscape
  • Technorati
  • Ma.gnolia
  • YahooMyWeb
  • Slashdot
  • Spurl
  • Fark
  • Furl
  • BlinkList


If you enjoyed this post, make sure you subscribe to the RSS feed!


Email This to a Friend Email This to a Friend

Print This Post Print This Post


Related Posts:

  • Search Engine Friendly URLs and .htaccess / mod_rewrite - Part 1
  • User-Agents: Cloak and Dagger for Web Sites - Part 1
  • Flash SEO Quick Tips
  • Best Forums for SEO and Web Development
  • WebGeek Version 2.0


  • About This Entry