欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

php:Invalid command RewriteEngine的解决办法

程序员文章站 2022-04-15 09:45:54
...
使用 CodeIgniter 时出现了HTTP 500错误,查看日志发现以下错误: CodeIgniter_2.0.2/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

使用 CodeIgniter 时出现了HTTP 500错误,查看日志发现以下错误: CodeIgniter_2.0.2/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration 解决办法: RewriteEngine命令需要rewrite mod的支持。 打开apache的配置文件httpd.conf ,取消 LoadModule rewrite_module modules/mod_rewrite.so前的注释即可