GZGame 发表于 2013-1-31 09:56:21

[转帖]httpd.ini与.htaccess伪静态规则转换

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