apache pseudo-static configuration and iis pseudo-static configuration of the difference between the analysis and comparison
/ *
In web development, we often touch php tutorials, asp tutorial files into htm or other files, let's talk about the pseudo-static rules apache and iis pseudo-static rules of some different parts. Let's take a look at apache pseudo-static configuration method.
Examples, we have to put
pl.php tutorial? id = 1
page.php? id = 1
Pseudo-static into HTML pages
d-1.html
v-1.html
<virtualhost 192.168.0.110:801>
serveradmin qq@sina.com
documentroot d: /www/www.jzread.com/
servername 192.168.0.110
rewriteengine on // This sentence must be open
rewriterule /jzread.com/d-(d+).html$ /v/pl.php?id=$1
rewriterule /jzread.com/v-(d+).html$ /v/page.php?id=$1
</ virtualhost>
After the above treatment ok.
So how do we deal with it in iis?
rewriterule /jzread.com/v-(d+).html$ /v/page.php?id=$1 [n, i]
rewriterule /jzread.com/d-(d+).html$ /v/pl.php?id=$1 [n, i]
ok write the same way.