2010-05-17 49 views
-1

我读了安装在我的Apache服务器上的mod_rewrite模块!实现干净的网址。我的Apache服务器是2.0。我在我的php信息中看不到这个模块。我如何安装这个模块。有人告诉我吗?Apache中的mod_rewrite模块

+1

请考虑将其移至http://serverfault.com/? – BenTheDesigner 2010-05-17 09:34:57

回答

0

内部httpd.conf文件取消对该行的LoadModule rewrite_module模块/ mod_rewrite.so

这是基本方式(从行的前面取出磅“#”符号),apache的通常新版本已取消注释。

2

您可能需要使用a2enmod rewrite启用它,然后重新启动或重新加载Apache。

0

如果您使用php作为CGI您将无法在phpinfo()中看到mod_rewrite。
(或其他的apache模块)