• 本帖最后由 骑驴找马 于 2015-12-31 23:08 编辑 *

折腾了几个小时一直搞不定,求大神写个AMH下thinkphp的伪静态规则,结尾是.conf,非常感谢!

httpd的规则是这样的:

[ISAPI_Rewrite]

3600 = 1 hour

CacheClockRate 3600
RepeatLimit 32
RewriteRule ^(.)/Office/index.php/(.)\.html$ $1/Office/index\.php\?s=$2 *
RewriteRule ^(.)/Office/kindeditor/plugins/baidumap/map(.)\.html$ $1/Office/kindeditor/plugins/baidumap/map\.html\?$2
RewriteRule ^(.)/Search/index.html\?name\=(.)$ $1/index\.php/Search/index.html\?name=$2
RewriteRule ^(.)/Common/verify.html\?(.)$ $1/index\.php/Common/verify.html\?$2
RewriteRule ^(.*)/(Feedback|Inquiry)/$ $1/index\.php\?s=$2
RewriteRule ^(.?)/((?!sitemap).)\.html$ $1/index\.php\?s=$2

.htaccess规则是这样的

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
*