繁体   English   中英

“此处不允许重定向”-即使使用AllowOveride All,我也无法使htaccess正常工作

[英]“Redirect not allowed here” - I cannot get htaccess to work even with AllowOveride All

我刚刚设置了Apache,一切正常,但是当我尝试使用.htaccess时,出现了500个内部服务器错误。 我检查了日志,并说"Redirect not allowed here"

这是我的htaccess文件: Redirect 302 / http://home.dev/test

和我的apache配置: http : //pastebin.com/B7Ah2dSB (我无法在页面上设置其格式,因为散列的注释变成了标题)

最后是httpd-vhosts配置:

<Directory "/Users/georgearnall/public">
  AllowOverride All
</Directory>

<Virtualhost *:80>  
  VirtualDocumentRoot "/Users/georgearnall/public"
  ServerName home.dev
</Virtualhost>

谢谢

排序! 我正在检查进程,而apache从未重启。 我正在使用此命令: sudo apachectl restart但是没有用。 相反,我使用sudo killall httpd ,然后使用sudo apachectl start

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM