c# - progmatically rewritemap rules at runtime -
Is it possible to add static rhythm rules to ASP.NET 3.5?
I have: -
& lt; Rewrite map & gt; & Lt; RewriteMap name = "my name" & gt; & Lt; Add Key = "/ Sale" value = "/ Test.aspx? Id = 10" /> & Lt; Add Key = "/ Sales-and-Marketing" value = "/ Test.aspx? Id = 10 & dog = cat" /> & Lt; / RewriteMap & gt; & Lt; / RewriteMaps & gt;
But do you want to add these programmatics to runtime?
I know a little while, but you can program it in different configurations through URL
& lt; Rewrite & gt; & Lt; RewriteMaps configSource = "urls.config" /> & Lt; Rules & gt; & Lt; Rule name = "Rewrite rule 1 for static redirect" & gt; & Lt; Mail url = ". *" * / / Gt; & Lt; Conditions & gt; & Lt; Add input = "{StaticRedirect: {REQUEST_URI}}" pattern = "(. +)" / & Gt; & Lt; / Status & gt; & Lt; Action type = "rewrite" url = "{C: 1}" appendix string = "fault" /> & Lt; / Rules & gt; & Lt; / Rules & gt; & Lt; / Rewrite & gt;
Then whenever your URLs will change, you will have to type it on the config file, when a page changes and the CMS is saved through the administrator system, then using a webservice To give instructions to reconstruct the client's website and file.
The only issue I have is that this Visual Studio Development webserver
Comments
Post a Comment