If I want to make a site URL copy back in ASP.NET for the new URL (e.g. url) please let me know.
# clean up old rules and forward to new URL
RewriteRule ^/?user=(.*) /users/$1 [NC,R=301]
# rewrite the rule internally
RewriteRule ^/users/(.*) /?user=$1 [NC,L]
Tags: asp.net url url-rewriting url-routing
Source: By GateKiller as answer to the question
This code snippet was collected from stackoverflow, and is licensed under CC BY-SA 4.0
Related code-snippets:
- How can I sync my SVN revision number with my ASP.NET web site?
- What is the catch all algorithm?
- What is the value of built, encoded viewstate?
- ASP.Net Custom Client-Side Validation. ASP.Net has created thousands of Web Application Test cases.
- In AJAX, rename address bar to match current state. Modify address bar URL to match current state.
- What do I do with triple quotes? How do I delimit a databound Javascript string parameter in ASP.NET?
- Can multiple dataContext classes be a good use of data?
- How do I define custom web.config sections with potential child elements and attributes for the properties?
- How do you change a master page background to the code behind your content page?
- How does ASP.NET display SVN Revision Number.?
- Absolute path back to web-relative path. Absolute path back to web-relative path.
- How do I call ASP.NET functions from JavaScript?
- How do I find expired ASP.NET sessions?
- Can you limit the number of records returned in LinqDataSource?
- Can you load config from an arbitrary location using ConfigurationManager?