#### mac apache 开启伪静态 --- 打开主配置文件 httpd.conf ``` sudo vim /etc/apache2/httpd.conf ``` 去除前面的注释,加载 Rewrite 模块 ``` LoadModule rewrite_module libexec/apache2/mod_rewrite.so ``` 将 `AllowOverride None` 修改为 `AllowOverride All` ``` DocumentRoot "/Users/liang/Sites" <Directory "/Users/liang/Sites"> #AllowOverride None AllowOverride All </Directory> ``` 重启apache服务 ``` sudo apachectl restart ```