首页 > 网站 > 建站经验 > 正文

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

2024-04-25 20:30:25
字体:
来源:转载
供稿:网友
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 
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表