/ Apache

ubuntu下apache2.2.20开启rewrite

1.打开终端

2.终端中输入sudo -i并输入密码

3.终端中输入

ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/

4.终端中输入

gedit /etc/apache2/sites-enabled/000-default

后面的000-default根据具体站点自己选择

5.在<Directory /var/www/>节点中,将

AllowOverride None

修改为

AllowOverride All

保存退出

6.在终端中输入

service apache2 restart

ubuntu下apache2.2.20开启rewrite
Share this