-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
404 error #9
Comments
I'm having a similar issue, getting a 404 when I go to the default store view and the normal url behaviour when I select a different storeview. Nothing in my exception.log either |
Modifying the Line 26 in Bubble_HideDefaultStoreCode_Model_Observer can solve it. old code: new code: |
@SunshineTech's fix worked for a site we've been working on also, its a great module for retro fitting multi-store into an existing magento setup Thanks for the fix |
Not working for me in Magento 1.9.2. Still get 404 page :( and also a too many redirects error |
@SunshineTech great catch! |
@jreinke please accept PR |
We have fixed in this way <?php
public function onFrontInitBefore(Varien_Event_Observer $observer)
// ...
$hasGotScriptName = strpos($requestUri, $request->getServer('SCRIPT_NAME'));
// ...
$prefixScriptName = "";
if ($hasGotScriptName !== false) {
$prefixScriptName = '/' .trim($request->getServer('SCRIPT_NAME'), '/');
}
$requestUri = $prefixScriptName.'/' . $storeCode . '/' . $requestUri; |
i have 7 languages with code, and its showing me 404 on defaullt with default url
The text was updated successfully, but these errors were encountered: