dpblwmh5218
2012-09-25 01:31
浏览 142
已采纳

.htaccess - 重定向到真实目录500错误

mydomain.com/forum/ is a real directory.

When I do add these 2 lines to my .htaccess:

RewriteRule ^forum/([a-zA-Z0-9_-]+)/new-thread /forum/new-thread.php?comm=$1 [L]
RewriteRule ^forum/([a-zA-Z0-9_-]+) /forum/community.php?comm=$1 [L]

mydomain.com/forum/ AKA mydomain.com/forum/index.php throws a 500 error, as well as all rules that are supposed to be changed by these lines. What am I doing wrong?

图片转代码服务由CSDN问答提供 功能建议

mydomain.com/forum/是一个真实目录。</ em> </ p>

当我将这两行添加到我的.htaccess时:</ p>

  RewriteRule ^ forum /([a-zA-Z0-9 _-] +)/ new  -thread /forum/new-thread.php?comm=$1 [L] 
RewriteRule ^ forum /([a-zA-Z0-9 _-] +)/ forum /community.php?comm = $ 1 [L] 
  </ code> </ pre> 
 
 

mydomain.com/forum / </ code> AKA mydomain.com/forum/index.php </ code>会引发500错误, 以及应该由这些行改变的所有规则。 我做错了什么?</ p> </ div>

1条回答 默认 最新

相关推荐 更多相似问题