只需一步,快速开始
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; } } ...
查看全部评分
本版积分规则 发表回复
Archiver|手机版|小黑屋|全球主机交流论坛
GMT+8, 2025-10-10 15:58 , Processed in 0.068559 second(s), 11 queries , Gzip On, MemCache On.
Powered by Discuz! X3.4
© 2001-2023 Discuz! Team.