Ubuntu 中启用 Apache Rewrite 模块

1. sudo a2enmod rewrite
2. sudo vi /etc/apache2/sites-available/default
3. 修改 AllowOverride none 为 AllowOverride all
4. sudo /etc/init.d/apache2 restart
5. 编辑 .htaccess 启用重写规则

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>