thinkphp htaccess的重写的问题

我的网站Thinkphp配置URL_MODE为2,传到服务器就出现这样的错误,无论进什么页面都会跳转到:询问函购物车。

htaccess的文件的配置如下:

 <IfModule mod_rewrite.c>
 RewriteEngine叙述上
 RewriteCond%{REQUEST_FILENAME}!-D
 RewriteCond%{REQUEST_FILENAME}!-F
的RewriteRule ^(*)$的index.php / $ 1 [QSA,PT,L],
 </ IfModule>

后来发现问题出现在阿帕奇的版本上,好像不同版本对重写的解析不一样。
修改htaccess文件如下后工作正常:

 <IfModule mod_rewrite.c>
 RewriteEngine叙述上
 RewriteCond%{REQUEST_FILENAME}!-D
 RewriteCond%{REQUEST_FILENAME}!-F
的RewriteRule ^(。*)$ index.php的?S = / $ 1 [QSA,PT,L]
 </ IfModule>
分享这篇文章:
DIGG 谷歌书签 reddit MIXX StumbleUpon technorati 雅虎BUZZ DesignFloat 美味 BlinkList 卷收

没有“Thinkphp htaccess的重写的的问题”

发表评论:

姓名(必填):
邮件(不会被公开)(必填):
网址:
评论(必填):
的XHTML:您可以使用这些标签: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>