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
Post a Comment