Magento URL translation "bug"? -


we have sitemap.xml urls , google analytics started throw errors this not available, not found, etc...

we have english , croatian store. when try open (while on croatian store) example url 404 page.

switch english store: works fine.

anyone having idea do?

ps. client don't want store code in url

after long talk client: urls must stay way are. no suffixes no prefixes, no subdomains, etc.

checked other magento projects none of them have same behavior. :s of plugins causing this.

i came simple solution didn't work. basicly idea check request via $_server, check url , determinate store load inside of index.php

mage::run($storeid); 

but nothing happend... same problem again. here piece of code don't (it works stupid).:

$link=mysql_connect("localhost","username","password"); mysql_select_db("database",$link);   $path= substr($_server['request_uri'],1)  ;// remove starting slash $sql = "select store_id   `core_url_rewrite` request_path = '{$path}'"; $rez= mysql_fetch_object(mysql_query($sql,$link)); if(!empty($rez)){     // found url , storeid     $store= $rez->store_id;     if($store != mage::app()->getstore()->getid()){          // store == current store?         //mage::app()->setcurrentstore($store);         if($store==1) $storeid="hr"; else $storeid="en";         $_server['request_uri']=$_server['request_uri']."?___store=".$storeid;         // mage::run($storeid);   // doesn't work.         header("location: ".$_server['request_uri']);          die; // in case     }    } mage::run($mageruncode, $mageruntype); //default exec 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -