0
.htaccess 파일이 있고 언제든지 www.example.com/demo/index.php를 입력하면 루프가 계속 리디렉션됩니다. 나는 이것이 왜 일어나고 있는지에 대해 정말로 혼란 스럽다. 당신이하고있는 경우mod_rewrite가 아무 이유없이 주소 표시 줄을 변경합니다.
# Do not remove this line, otherwise mod_rewrite rules will stop working
RewriteBase/
Options +Multiviews
AddHandler application/x-httpd-php .css
AddHandler application/x-httpd-php .js
RewriteEngine On
#NC not case sensitive
#L last rule don't process futher
#R 301 changes the url to what you want
RewriteRule ^demo(.*)$ finished$1 [NC]
RewriteCond %{REQUEST_URI} ^/finished/.*$
RewriteRule ^finished/(.*)$ demo/$1 [NC,R=301,L]
당신이'Multiviews를이해야합니까를 '? 콘텐츠 협상이 부주의로 어딘가에 리디렉션을 유발할 수 있습니다. –
나는 문제가 될 수 있다고 생각하지는 않았다. 그것이 파일 확장자를 없애고 있다고 생각했지만 –
이 여전히 동일한 문제를 가지고 그것을 변경하려고 시도 할 수 있습니다. ( –