regex - htaccess browser language redirection -


rewritecond %{http:accept-language} ^(en|de)$ [nc] rewritecond %{http_host} !^%1.domain.dev$ [nc] rewriterule .* http://%1.domain.dev [r,l] 

this code causes redirection loop error. i've debug second condition, should prevent this, , both host , right side seems identical. 20th version or so, run out of ideas.


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -