SharpLife.NET
A sharp way to know more // Mahdi Taghizadeh's Daily Web Keystrokes.
Navigation for SharpLife.NET - Current ASP.NET URL Rewriting Solutions VS. IIS 7.0 Solution
Content
Sidebar
Footer
September 17, 2007
@ 06:55 PM
Comments [0]
Current ASP.NET URL Rewriting Solutions VS. IIS 7.0 Solution
It's a few months I have been using
UrlRewriting.NET
component for my Url Rewriting needs in ASP.NET 2.0. Since it's free and open source and covers many features that I need, it was a good choice for my projects. The big problem with this (and also other available components) is that it can't rewrite fake directories. For example if you have a url like http://myurl.com/products/productcategory.aspx?name=Phone and want to rewrite it to something like http://myurl.com/products/Phone/ you must have a folder named Phone in products folder containing a blank Default.aspx file inside it or in another way map all requests to ASP.NET engine in IIS. Both ways (especially second) are annoying and waste resources.
Because I'm working on a project that needs to rewrite fake URLs and also server resource management is so important in this project I searched for other solutions today and I reached
UrlRewiter.NET
; but unfortunately this one doesn't support fake URL rewriting as well as previous ones. [There are some tricks to handle fake directories like using customErrors default error page and etc. which you can find on CodeProject.com]. So it is not a good solution for me too. So I searched again and I reached
this
. It seems that IIS 7.0 new structure lets developers do this. In fact just by adding a few lines to Web.Config you can use your current module to Rewrite all URLs (See this
post
).
It's a good news but IIS 7.0 is still in Beta and many servers don't support it. Should we wait until Windows Server 2008 to use IIS 7.0?
It's a big question for me that while PHP developers are using this simple feature since a few years ago, why Microsoft don't offer a solution before IIS 7.0 official release.
UPDATE 1:
Looking for IIS 6.0 Solutions? See
this
.
UPDATE 2:
Wyatt Barnett has commented on this post and introduced an article written by himself which explains some tricks to make IIS 6.0 Play With UrlRewriting. See
it
.
Categories:
.NET General
|
ASP.NET
|
Web Development
Related posts:
How to handle non-English characters in ASP.NET MVC routes
How to choose between ASP.NET MVC and Web Forms
Microsoft Released Anti-XSS 3.0 Beta and CAT.NET CTP
iDevCenter is back!
Useful HtmlHelpers for ASP.NET MVC
Source Control for .NET Developers, The open source approach
« AJAX Loading Indicator GIF Generator
|
Home
|
The 25 Ugliest Celebrities! »
Comments are closed.
Special
Tabassom's Photo Gallery
Contact
Email me! |
|
RSS/Subscribe
Subscribe in a reader
SUPPORT ME!
Archives
All dates
All Posts
Microblog/MicroSharpLife!
Twitter Updates
follow mahdi at http://twitter.com
Search
Latest Posts
How to handle non-English characters in ASP.NET MVC routes
ASP.NET MVC Free eBooks
How to choose between ASP.NET MVC and Web Forms
Centralize your identity with Chi.mp
Happy New Year 2009
Microsoft Released Anti-XSS 3.0 Beta and CAT.NET CTP
Receive your free 1-year license for McAfee Virus Scan Plus 2009
Clean up your digital life!
Categories
.NET General (15)
AJAX (10)
ASP.NET (23)
ASP.NET MVC (6)
Book Review (2)
C# (4)
Celebrities (1)
Community Server Persian (1)
dasBlog (1)
Download (26)
eBooks (1)
Freebies (3)
General (7)
i18n (6)
Iran (5)
Life (2)
Mathematics (2)
Microsoft (10)
Music (1)
Notebook (1)
Other (6)
Personal (15)
Politics (1)
Review (1)
Security (8)
SharpLife.NET (6)
Smart Phone (2)
Software (7)
Sports (3)
SQL Server (1)
Tabassom (2)
Tools (7)
Training (2)
Tutorial (2)
Web (9)
Web 2.0 (11)
Web Development (13)
Web Services (3)
Archives
April, 2009 (3)
January, 2009 (2)
December, 2008 (3)
November, 2008 (2)
October, 2008 (1)
September, 2008 (2)
August, 2008 (2)
July, 2008 (2)
June, 2008 (1)
November, 2007 (2)
October, 2007 (4)
September, 2007 (14)
August, 2007 (5)
May, 2006 (4)
April, 2006 (6)
March, 2006 (5)
February, 2006 (20)
January, 2006 (2)
BlogRoll
Behnam Youssefi
Farid Arzpeyma
Hadi Eskandari
Hamed Banaei
Hamid Shojaee
Keyvan Nayyeri
Milad Karbasizadeh
Mohammad Mahdi Ramezanpour
Nima Shayafar
Pedram Pourhossein
Raiha Buchanan
Sassan Yeganegi
Scott Hanselman
Shima Dehbashi
Tabassom Taghizadeh
See my little daughter photos.
Categories
.NET General
AJAX
ASP.NET
ASP.NET MVC
Book Review
C#
Celebrities
Community Server Persian
dasBlog
Download
eBooks
Freebies
General
i18n
Iran
Life
Mathematics
Microsoft
Music
Notebook
Other
Personal
Politics
Review
Security
SharpLife.NET
Smart Phone
Software
Sports
SQL Server
Tabassom
Tools
Training
Tutorial
Web
Web 2.0
Web Development
Web Services