Ubuntu下apache2伪静态设置

sudo a2enmod rewrite 开启Rewrite模块 sudo /etc/init.d/apache2 restart

sudo gedit /etc/apache2/sites-available/default 修改下面的地方

Options FollowSymLinks

AllowOverride None(修改为AllowOverride All)

Options Indexes FollowSymLinks MultiViews

AllowOverride None(修改为AllowOverride All)

Order allow,deny

allow from all

其实网上其它地方

Read more