WPGlobus - language http redirect error
<p>Instead of using apache i use this php to redirect language on http server language</p>

<pre><code>$langs=explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
if(!is_array($langs))$langs=array($langs);
foreach($langs as $l){
    $reallang=(strlen($l)&gt;2)?strtolower(substr($l,0,2)):strtolower($l);
    if(!class_exists('WPGlobus'))break;
    $currentlanguage=WPGlobus::Config()-&gt;language;
    /*echo "Testing browser lang $reallang&lt;br&gt;Current language is $currentlanguage&lt;br&gt;";*/ //DEBUG
    if($reallang==$currentlanguage)break;
    foreach(WPGlobus::Config()-&gt;enabled_languages as $lang) {
        if($lang==$reallang)header("Location: ".WPGlobus_Utils::localize_current_url($lang));
    }
}
</code></pre>

<p>Now the problem is that i cant access my admin panel because it changes the URL. How can i set this only to work in front end?</p>