什麼能阻止Apache重定向。導致這些重定向的原因是什麼?什麼可以阻止Apache重定向。導致這些重定向的原因是什麼?
的.htaccess
RewriteEngine On
RewriteBase/
Options -MultiViews
DirectoryIndex /public/index.php
RewriteCond %{HTTPS} off
RewriteRule ^https://somedomain.com%{REQUEST_URI} [NE]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{ENV:REQUEST_FILENAME} !-d
RewriteCond %{ENV:REQUEST_FILENAME} !-f
RewriteCond %{ENV:REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ https://%{HTTP_HOST}/public/index\.php?url=$1 [QSA,R=301,L]
使用somedomain.com/login 我越來越ERR_TOO_MANY_REDIRECTS
https://somedomain.com/public/index.php?url=public/index.php&url=public/index.php < ...>
我相信L時,應停止重定向?纔不是?
你使用像symfony這樣的路由框架嗎? – German