只需一步,快速开始
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-5-5 11:53 , Processed in 0.068736 second(s), 13 queries , Gzip On, MemCache On.
Powered by Discuz! X3.4
© 2001-2023 Discuz! Team.