G.国王族 官方论坛-广州游戏资讯网
标题:
[转帖]httpd.ini与.htaccess伪静态规则转换
[打印本页]
作者:
GZGame
时间:
2013-1-31 09:56
标题:
[转帖]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
欢迎光临 G.国王族 官方论坛-广州游戏资讯网 (http://bbs.gzgame.com.cn/)
Powered by Discuz! X3.1