Home > Net >  Will the URL rewrite the writing problems.
Will the URL rewrite the writing problems.

Time:09-28

Windows 2008 will URL rewriting section in the regular expression writing problems,

Example:

http://www.aaa.com/? Id=1501 want to rewrite into http://www.aaa.com/1501.html


How to write this? I am a newcomer, what a big help to solve! Thank you very much!

CodePudding user response:

Now no one use IIS,. Net are kestrelserver

CodePudding user response:

This is you want to be a pseudo static? Try
configuration by roadFor example,
Routes. The MapRoute (
Name: "Default",
Url: "{controller}/{action}/{id}. The HTML",
Defaults: new {controller="Home", action="Index", id=UrlParameter. Optional},
Namespaces: new string [] {" Controller. The Controllers "}
);
  • Related