Ubuntu下启动Apache对.htaccess 的支持 Posted on 2009年12月22日2019年7月19日 by 迎迎 姚 步骤: 1. 终端运行 sudo a2enmod 程序提示可供激活的模块名称,输入: rewrite 2. 修改/etc/apache2/sites-enabled/000-default (该链接指向的是站点配置文件) 把(默认的www目录、或者需要应用.htaccess的目录)下的AllowOverride 属性改为All,保存。 3. 重新加载apache sudo /etc/init.d/apache2 restart 收工。
Comments are closed.