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前的注释即可。 |
下一篇: php中检查文件或目录是否存在的代码小结
推荐阅读
-
php多用户读写文件冲突的解决办法
-
无法在发生错误时创建会话,请检查 PHP 或网站服务器日志,并正确配置 PHP 安装最快的解决办法
-
PHP Curl出现403错误的解决办法
-
php 随机记录mysql rand()造成CPU 100%的解决办法
-
PHP网站从Apache转移到Nginx后产生404错误的原因和解决办法
-
关于PHP中拿到MySQL中数据中的中文在网页上显示为?的解决办法!
-
php和mysql中uft-8中文编码乱码的几种解决办法
-
php用windows COM组件调用openoffice接口实现word转pdf文件时报错的解决办法
-
php中用date函数获取当前时间有误的解决办法
-
php curl获取网页内容(IPV6下超时)的解决办法