URL Rewriting - Search Engine Friendly URL’s - Part 2
by Scott AllenYou 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:
- Static URLs typically rank better in search engines.
- Search engines are known to index the content of dynamic pages much more slowly than that of static pages.
- 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:
Search Engine Friendly URLs | .htaccess | htaccess | Mod_Rewrite | apache | dynamic urls | search engine optimization | seo | webgeek
If you enjoyed this post, make sure you subscribe to the RSS feed!
Related Posts:
About This Entry
You’re currently reading “URL Rewriting - Search Engine Friendly URL’s - Part 2,” an entry on WebGeek
- Published:
- 09.09.06 / 2pm
- Category:
- .htaccess, SEO, URL Rewriting
- 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
- RSS Feeds:
- Subscribe to Blog
- Subscribe to Comments
- WordPress Plugins:
- WP-SpamFree
- About Us:
- Hybrid6 Studios is a
web design and SEO firm
based in Los Angeles, CA.- Hybrid6 Studios is a















No comments
Jump to comment form | comments rss [?] | trackback uri [?]