RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)faq/(.*).shtml$ $1/faq\.php\?id=$2
RewriteRule ^(.*)questions/(.*).shtml$ $1/questions\.php\?id=$2


原帖由 小夜 于 2010-12-7 16:14 发表
找我啊。。。。location / {
if (!-e $request_filename){
rewrite ^/faq/(.+)$.shtml /faq.php?id=$1 last;
rewrite ^/questions/(.+)$.shtml /questions.php?id=$1 last;
}
} ...

| 欢迎光临 全球主机交流论坛 (https://loc.193.gs/) | Powered by Discuz! X3.4 |