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