Pseudo-static steps web. config and pseudo-static web. config
<? Xml version = "1.0" encoding = "UTF-8"?> <Configuration> <! -- Register the url rewriting module in the top part of webconfig --> <configSections> <section name = "RewriterConfig" type = "URLRewriter. config. rewriterConfigSerializerSectionHandler, URLRewriter "/> </configSections> <! -- Add Rewrite Rules in step 2 --> <RewriterConfig> <! -- Create all rewrite Rules first --> <Rules> <! -- Create rules for each individual page --> <RewriterRule> <! -- Original request address --> <SendTo> <! [CDATA [~ /News. aspx? Id = $1 & pid = $2]> </SendTo> <! -- Rewrite address --> <LookFor> ~ /News/(. [0-9] *)/(. [\ d] *) \. html </LookFor> </RewriterRule> <! -- Original request address --> <SendTo> <! [CDATA [~ /Product. aspx? Pid = $1]> </SendTo> <! -- Rewrite address --> <LookFor> ~ /Product /(. [\ d] *) \. zangdalei </LookFor> </RewriterRule> </Rules> </RewriterConfig> <system. web> <compilation debug = "false" targetFramework = "4.0"> <! -- The fourth part of url rewriting prevents real pages from being overwritten. If the website actually contains pages, you need to add compilation instructions to not compile real html files --> <buildProviders> <add extension = ". html "type =" System. web. compilation. pageBuildProvider "/> </buildProviders> </compilation> <! -- The third part is url rewriting. the user's request page is handed over to the corresponding processing program. Pay attention to the request suffix format -->