Problem Statement
Your Web Server : IIS 6 or below
You need extension less URLs, like they have in twitter, eg. www.twitter.com/beenish ,. If you notice, it doesn't have any extension like PHP or ASPX, so IIS won't know which dll to call and execute this request, it will simply show you a Page not found - 404 error.
Note : IIS7 supports this feature and Apache has a very simple rewrite module for it.
Solution
Your best bet would be to use an ISAPI rewriter. Ionic ISAPI rewrite is probably the best free one out there. The one drawback it has is the regex formats used, which are a little different from the ones used in Apache, so if you are use to Apache's rewrite module, you might have to make some adjustments. I found it's installation to be quite simple.
You can find all the help at their site.
Apart from this, Scott Guthrie has discussed some nice tips and tricks for URL rewriting, which you can check here : URL Rewriting - Tips/ Tricks
Tuesday, August 18, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment