0
基本重寫規則不起作用,我不知道爲什麼。這裏是我的hanalulu.conf:Apache重寫規則不起作用
<VirtualHost *:80>
ServerName hanalulu.localhost
DocumentRoot /var/www/hanalulu/public
DirectoryIndex index.php
<Directory />
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
RewriteEngine on
RewriteRule ^a.html$ b.html
</VirtualHost>
後,我在hosts
文件添加一個額外的線上,並通過sudo a2ensite
啓用站點。重新啓動的Web服務器:hanalulu.localhost/a.html
請求a.html
而不是b.html
。
什麼問題?
ü救了我的一天,朋友:) +1 – sitilge