Home > php教程 > php手册 > 如何让apache支持url_rewrite

如何让apache支持url_rewrite

WBOY
Release: 2016-06-21 09:00:37
Original
827 people have browsed it

如何让自己的本地APACHE服务器支持"url_rewrite"呢?这需要修改一下apache的httpd.conf设置,就可以让APACHE支持.htaccess了,前提是你的apache先要支持.htaccess

修改apache的设置文件 httpd.conf,去掉下面这句的前面的"#"

#LoadModule rewrite_module modules/mod_rewrite.so

改为

LoadModule rewrite_module modules/mod_rewrite.so

重新启动apache就可以了



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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template