c# - Visual Studio URL ReWrite -


i wanting rewrite .aspx pages in visual studio .html pages throughout entire solution.

is there easy way using web.config file or .htaccess file?

you can writing rules rewrite in web config file

<urlrewrites>             <rule>                 <url>/urlrewriter/show\.asp</url>                 <rewrite>show.aspx</rewrite>             </rule>             <rule>                 <url>/urlrewriter/wohs\.asp</url>                 <rewrite>show.aspx</rewrite>             </rule>             <rule>                 <url>/urlrewriter/show(.*)\.asp</url>                 <rewrite>show.aspx?$1</rewrite>             </rule>             <rule>                 <url>/urlrewriter/(.*)show\.html</url>                 <rewrite>show.aspx?id=$1&amp;cat=2</rewrite>             </rule>             <rule>                 <url>/urlrewriter/s/h/o/w/(.*)\.html</url>                 <rewrite>/urlrewriter/show.aspx?id=$1</rewrite>             </rule>         </urlrewrites> 

and can using dll rewrite, rules mandatory rewrite.

thank you.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -