【发布时间】:2010-10-14 19:32:04
【问题描述】:
我有这个我想友好的 url,在 .htacess 上使用重写但它给了我一个错误(500 内部服务器错误),这是我的原始 php url
http://www.example.com/viewtopic.php?topic=lovetopic
我想改成这样:
http://www.example.com/lovetopic
这是我的整个 htaccess 代码是这样的:
RewriteEngine On
RewriteRule ^user/([^/]*)$ /viewprofile.php?user=$1 [L]
RewriteRule ^([^/]*)$ /viewtopic.php?topic=$1 [L]
不知道是什么问题
EDIT服务器错误日志给了我这个错误
[Thu Oct 14 20:34:36 2010] [error] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.,
【问题讨论】:
-
我把服务器错误日志给了我的东西,谢谢:))
-
自从我对主题 url 进行了重写,它一直给我这 500 个内部错误