重写规则给出 500 错误
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^files/(.*) files/index.php
RewriteCond %{HTTP_HOST} ^domain\.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
我试图将文件目录中的所有内容重写为 index.php ,它也在文件目录中。页面显示但总是给出500错误,有人可以帮助我吗?
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^files/(.*) files/index.php
RewriteCond %{HTTP_HOST} ^domain\.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
I am trying to rewrite everything in the files directory to index.php which is also in the files directory. The page displays but always gives a 500 error , can anyone help me please ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以相同的顺序执行此操作:
Do this in the same order: