Hey there.
I have a root directory root.com, which uses a completely different homepage. And I installed this shop under the root.com/shop folder. But my website is a multilanguage one. So, my pages are like:
root.com/en/products
root.com/tr/products
But when I visit the shop page it turns into root.com/shop/en. I want to change this into -> root.com/en/shop or root.com/tr/shop.
I went through classes folder and found Link.php and Tools.php has affects on this links. For example, by using Link.php on this line:
return $this->getBaseLink($idShop, $ssl, $relativeProtocol) . $this->getLangLink($idLang, null, $idShop) . ltrim($uriPath, '/');
When I replace this with the code below:
return str_replace("/shop", "", $this->getBaseLink($idShop, $ssl, $relativeProtocol)) . $this->getLangLink($idLang, null, $idShop) . "shop/ . ltrim($uriPath, '/');
The url changes the way I desire. But this time I get the "Load cannot follow more than 20 redirections" error on the browser.
Because, normally, my website redirects all pages which starts with "en/" to their subfolders. And on the other hand, Presta tries to redirect it back.
Anyone knows a workaround this problem?