[转帖]httpd.ini与.htaccess伪静态规则转换
httpd.ini适合IIS使用,.htaccess适合Apache使用,nginx.conf适合Nginx使用<br/><br/>例如:<br/><wbr><br/><b><wbr>httpd.ini<br/></b><wbr><br/># 3600 = 1 hour<br/>CacheClockRate 3600<br/>RepeatLimit 32<br/>RewriteRule ^(.*)<b><wbr><font style="LINE-HEIGHT: 1.3em" color="#ff0000">/</font><wbr></b><wbr>view-(.*)-(.*)\.htm$ $1/view<b><wbr><font style="LINE-HEIGHT: 1.3em" color="#ff0000">\</font><wbr></b><wbr>.php<b><wbr><font style="LINE-HEIGHT: 1.3em" color="#ff0000">\</font><wbr></b><wbr>?s=$2&y=$3<br/><br/><b><wbr>.htaccess</b><wbr>(注意上面的红斜干)<br/>RewriteEngine on<br/>RewriteBase /<br/>RewriteRule ^(.*)view-(.*)-(.*)\.htm$ $1/view.php?s=$2&y=$3
页:
[1]