httpd.ini与.htaccess伪静态规则转换
httpd.ini与.htaccess伪静态规则转换
httpd.ini适合IIS使用,.htaccess适合Apache使用,nginx.conf适合Nginx使用
httpd.ini
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
RewriteRule ^(.*)/view-(.*)-(.*)\.htm$ $1/view\.php\?s=$2&y=$3
.htaccess(注意上面的红斜杠)
RewriteEngine on
RewriteBase /
RewriteRule ^(.*)view-(.*)-(.*).htm$ $1/view.php?s=$2&y=$3