UrlRewriter.NET is an open source, lightweight, highly configurable URL rewriting component that supports ASP.NET 1.1 and ASP.NET 2.0. UrlRewriter.NET provides the address rewriting function, which is similar to the use of .htaccecc in the Apache server for address rewriting. And using this component, you don't need to install any ISAPI components similar to ISAPI Rewrite filter. This component is free and open source and follows the MIT-style license open source agreement.
UrlRewriter.NET is a great Search Engine Optimization (SEO) tool. Using it, you can create URLs that contain specified keywords, thereby improving your website's ranking in search engines.
Using UrlRewriter.NET you can do:
Provide a more friendly Url format for users and search engines for the actual Url (such as hiding the .aspx extension in the Url, or even removing all extensions to achieve a semantic Url address).
After your website is redesigned, the old access address can be automatically transferred to the new address without the user having to participate in any redundant operations. This helps search engines better index your website.
Block some incoming requests that are illegal or that you do not want to allow access to. For example, you can use User-Agent to determine whether the search engine is a search engine and force it to not include the content you don't want it to include (you don't need to set robots.txt).
Provide different services to visitors based on their IP addresses, such as prohibiting access requests from a certain IP range.
There are many more that require your careful exploration...
UrlRewriter.NET is a .NET component written purely in C#, and it does not require the support of any other ISAPI components. You can use XML document format to configure rewrite rules, which are included in the web.config file by default. Of course, you can also customize a rule file.
Expand