0
기본 다시 쓰기 규칙이 작동하지 않아 그 이유를 모르겠습니다. 내가 hosts
파일에 추가 라인을 추가 sudo a2ensite
를 통해 사이트를 활성화 한 후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>
: 여기 내 hanalulu.conf입니다. 다시 시작한 웹 서버 : hanalulu.localhost/a.html
a.html
대신 b.html
을 요청합니다.
무엇이 문제입니까? 나는 당신이 당신의 경로에 슬래시와 RewriteRule의에 플래그를 필요가 있다고 생각
U 저장 내 하루, 친구 : 1 – sitilge