个人工具

UbuntuHelp:Apache/EnablingModRewrite

来自Ubuntu中文

Wikibot讨论 | 贡献2008年10月19日 (日) 04:12的版本

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航, 搜索


mod_rewrite was not enabled, by default, on my Apache installation. I am on Ubuntu 7.10 (which is in development, at present). To enable it, I simply issued the following command:

sudo a2enmod rewrite

and then restart apache with:

sudo /etc/init.d/apache2 force-reload

To disable it, simply

sudo a2dismod rewrite

and then restart apache with the above command.