Apache pseudo-static configuration and iis pseudo-static configuration difference analysis comparison

  

apache pseudo-static configuration and iis pseudo-static configuration difference analysis comparison /* In web development, often encountered to php tutorial, asp tutorial file pseudo Static into htm or other files, let's talk about some different parts of apache pseudo-static rules and pseudo-static rules in iis. Let's take a look at the apache pseudo-static configuration method.

Instance, we want to put pl.php tutorial? id=1 page.php?id=1 pseudo-static into html page d-1.html v-1.html

<virtualhost 192.168.0.110:801> serveradmin [email protected] documentroot d:/www/www.45it.net/servername 192.168.0.110 rewriteengine on //This sentence must be enabled rewriterule /111cn.net/d-(d+).html$ /v/pl.php?id=$1 rewriterule /111cn.net/v-(d+).html$ /v/page.php?id=$1

</virtualhost>

After the above processing, it is ok. So how do we deal with it in iis?

rewriterule /111cn.net/v-(d+).html$ /v/page.php?id=$1 [n,i] rewriterule /111cn.net/d-(d+).html$ /v/pl.php?id=$1 [n,i]

Copyright © Windows knowledge All Rights Reserved