查看apache_error.log显示
[Fri Jul 29 07:50:51 2016] [alert] [client ::1] /website/project1/.htaccess: Invalid command '\xef\xbb\xbfRewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
该项目在windows正常运行,放到mac为什么就不行,
原来是编码问题,改成utf-8保存一下就好了
本文介绍了一个关于Apache服务器中.htaccess文件因编码错误导致的问题及其解决方案。在从Windows环境迁移至Mac环境中时,由于文件编码不同,导致Apache无法正确解析.htaccess文件中的指令。文章详细解释了如何通过调整文件编码为UTF-8来解决这一问题。


被折叠的 条评论
为什么被折叠?



