ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
原作者:[dayrui](http://www.dayrui.net/home.php?mod=space&uid=1)     chm整合-yufan  Q:956932910 个人网站[http://www.sxwzjs.cn/](http://www.sxwzjs.cn/) 论坛推荐[http://bbs.lampym.com/index.php?c=thread&fid=12](http://bbs.lampym.com/index.php?c=thread&fid=12)   一、文档参考 Apache伪静态:[http://httpd.apache.org/docs/2.4/rewrite/](http://httpd.apache.org/docs/2.4/rewrite/) IIS伪静态配置:[http://www.isapirewrite.com/docs/](http://www.isapirewrite.com/docs/) Nginx伪静态:  [http://www.nginx.org/cn/docs/http/converting_rewrite_rules.html](http://www.nginx.org/cn/docs/http/converting_rewrite_rules.html) Lighttpd配置:  [http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModRewrite](http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModRewrite) 二、规则说明 1、apache RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ index.php [NC,L] 2、 IIS web服务器 RewriteRule ^[\w/\%]*(?:\.(?!(?:js|ico|gif|jpg|png|css)$)[\w\%]*$)? /index.php [I] 3、 Lighttpd url.rewrite-once = (     ".*\?(.*)$" => "/index.php?$1",     ".*\.(js|ico|gif|jpg|png|css)$" => "$0",     "" => "/index.php" ) 部分伪静态规则来自[http://framework.zend.com/manual/zh/zend.controller.router.html](http://framework.zend.com/manual/zh/zend.controller.router.html)。 **FineCMS伪静态规则与Zendframework框架一致,伪静态规则均可按照Zend框架来写(网上可以搜索到)。 **