Auto redirect to existing language
http://{DOMAIN}/?lang={LANGUAGE}
захожу на сайт с русским браузером
http://domain.com
получаю цикличный редирект на
http://domain.com/?lang=ru
Code: Select all
http://domain.com/
Host: domain.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Connection: keep-alive
Cookie: PHPSESSID=4klq7tga5u4gqofia3nc6t4gl2; UI_rot_sponsor_edit__windowX=517; UI_rot_sponsor_edit__windowY=124; tw_tabs2=tabs2-13; recreate_cache=xudpmstjwwoztlp; recreate_cache=xudpmstjwwoztlp
Upgrade-Insecure-Requests: 1
NS_ERROR_REDIRECT_LOOP
Server: nginx
Date: Wed, 12 Aug 2020 13:36:01 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 0
Connection: keep-alive
Keep-Alive: timeout=60
X-Powered-By: PHP/5.4.45
Set-Cookie: user_var=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/
Location: http://domain.com/?lang=ru
http://domain.com/?lang=ru
Host: domain.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Connection: keep-alive
Cookie: PHPSESSID=4klq7tga5u4gqofia3nc6t4gl2; UI_rot_sponsor_edit__windowX=517; UI_rot_sponsor_edit__windowY=124; tw_tabs2=tabs2-13; recreate_cache=xudpmstjwwoztlp; recreate_cache=xudpmstjwwoztlp
Upgrade-Insecure-Requests: 1
GET: HTTP/1.1 302 Found
Server: nginx
Date: Wed, 12 Aug 2020 13:36:01 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 0
Connection: keep-alive
Keep-Alive: timeout=60
X-Powered-By: PHP/5.4.45
Set-Cookie: user_var=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/
Location: http://domain.com/?lang=ru
http://domain.com/?lang=ru
Host: domain.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Connection: keep-alive
Cookie: PHPSESSID=4klq7tga5u4gqofia3nc6t4gl2; UI_rot_sponsor_edit__windowX=517; UI_rot_sponsor_edit__windowY=124; tw_tabs2=tabs2-13; recreate_cache=xudpmstjwwoztlp; recreate_cache=xudpmstjwwoztlp
Upgrade-Insecure-Requests: 1
GET: HTTP/1.1 302 Found
Server: nginx
Date: Wed, 12 Aug 2020 13:36:01 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 0
Connection: keep-alive
Keep-Alive: timeout=60
X-Powered-By: PHP/5.4.45
Set-Cookie: user_var=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/
Location: http://domain.com/?lang=ru