ubuntu12.04 上启动Apache Mod_rewrite模块

1.Enable rewrite模块

    sudo a2enmod rewrite

2,重启Apache 服务

    sudo service apache2 restart

3,修改/etc/apache2/sites-enabled/000-default文件

<Directory /var/www/>

          Options Indexes FollowSymLinks MultiViews

          AllowOverride All (由None改为 All)

          Order allow,deny

          allow from all

      </Directory>

4,再次重启Apache 服务

    sudo service apache2 restart

你可能感兴趣的:(apache,ubuntu12.04,Mod_rewrite模块)