PHP:Invalid command RewriteEngine解决方法

WBOY
Release: 2016-06-13 12:56:57
Original
945 people have browsed it

PHP:Invalid command RewriteEngine解决办法

今天使用 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前的注释
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template