I would like to translate Magento CMS pages with URL rewrites. When I change the language from English to Thai for the same page, I get a 404 Not Found error. I was able to reproduce this error with these steps:
I visit the Thai "Contact Us" page (http://n3mtrading.com/thai/contact-us.html) without any problems.
When I switch the language from Thai to English, the URL will redirect from http://n3mtrading.com/default/contact-us.html to http://n3mtrading.com/default/contact-us-eng because I used URL rewrite.
If I click the language bar's link for Thai (http://n3mtrading.com/thai/contact-us-eng?___from_store=default), I will get a 404 Not Found error.
How can I fix this 404 Not Found error?
You have to set one more URL rewrite for the English store view which would say:
If from English store view, default/contact-us.html is accessed,
please redirect to default/contact-us-eng.html
Go to Catalog/URL Rewrite Management > Add Rewrite > Custom
Choose Store as English storeview
Enter any unique ID path
Enter default/contact-us.html in request path
Enter default/contact-us-eng.html in target path
Redirect - Yes
Related
i am trying to fix the following problem:
When i create a new product, i always give the english store a different url than the german store. On the frontend when i switch from the german store to the english store, it returns a 404 page. on the german product page the country id (de) is in the url (http://website/de/product1.html). But when i switch to the
english store the link looks like this: http://website/product1.html (without country id). And that gives me a 404 page!
Note: When i add the "en" country id to the url it works perfect.
can someone help me resolve this issue?
Magento Version 1.7.
Maybe try to change your english storeview base URL :
go to System -> Config then choose your english store view
then, in the config panel, go to general -> web
in "secure" -> Base URL uncheck "use website" and add en/ at the end of the URL.
do the same in in "unsecure"
I expect it will work.
In my store I have got 2 languages, English (default) and German. I also have a category, lets call it other.
The url key for other is other and sonstiges for the German view. Now, when I send somebody a link to the German view (www.example.com/sonstiges.html), it generates a 404 not found until I select German as language. Afterwards it works when the link is clicked.
I removed the store view code from my url by the way, it has to stay that way.
Why is that and how can I change it?
Thanks!
Its happening for url rewrite problem.
Example : For product if you provide different url key for different store view like different url key for English and different url key for German then if you share the url from english site and if someone open in German view then he will get 404 not found.
Solution : Go to that particular product in the admin then switch store view and set same url key for both store view. Either dont provide url key for any store view so Magento will generate by own.
Thanks .
I have 1 website for now. Its URL is www.test.com, for example.
I want to create second website on the same domain adding store codes to URLs. So my URLs will be
www.test.com/first/
www.test.com/second/
But as I can see all my previous URLs will show 404 on their open. So if I open
www.test.com/product.html
it will show 404. It is not good because I loose my SEO.
How can I create redirects so if user opens
www.test.com/product.html
he will be automatically redirected to default website, like
www.test.com/first/product.html
Shall I have any issues with such redirects? (Like API will not work)
Or is it possible for URL
www.test.com/product.html
to show product from default website, if exists?
Magento has a very good system for SEO.
For Rewrite Management these are the steps:
1.Loginto Admin.
2.Move mouse over Catalog and you will find a drop down.
3 Select URL Rewrite management.
Catalog >> UrlRewrite Management
4.Then click on ADD URL Rewrite Button.
5.Then on next screen select custom from option provided
Create URL Rewrite : Select Custom
Now following important fields and values that should go:
Request Path (Old URL ) Target Path ( New URL ) redirect (Permanent 301).
Note : This approach will be good if you have few products but if you have too many product then some .htaccess rule is recommended.
I have difficulty that my current store is English & I am in category page but the thing is, that now if I write url's category.html part to it's french version then it gives an error of 404 page not found.
Ex. http://www.abcd.fr/r4-cards.html to http://www.abcd.fr/cartes-r4.html (From English to French View) - These are dummy urls so don't click to view!
Other thing is when I enter french url then the whole site should be converted in French view.
Any Help?
Please.
I suggest you to rebuild indexes . if everything is set up properly this is a cache and old indexes issue
I've been trying to set up a CMS page in magento to be the home page, and it's just killing me - how hard should this be? no matter what I set up, I get a 404.
Can somebody tell me basic steps to set up a CMS page as the home page for a Magento install, living at:
http://www.mymagentoinstall.com/
I can't have the url key for the CMS page be empty, but setting the default page in the System->Config->Default Pages->CMS Home Page (which seems like it should work), still gives me a 404.
thx for any help
Hours of head banging later .... I’ve changed the parameter “Use Web Server Rewrites” on System -> Configuration -> Web from Yes to No. And it worked! My provider set this by default, so had to change it. Only downside is that I now get the /index.php extension added.
Did you check to make sure that the page was enabled and visible in your store view?
Ok - figured it out. In the System->Config->Web, the Default Web URL needs to be 'cms' (no quotes) - I guess that tells Magento to use the cms page instead of a default url.
In csm - pages create some html in the page, eg start simple with My Homepage.
Give it a name and take care the url is "home" (without the quotes.
Now go to system - configuration - web and select your homepage (name) from the dropdown where in lets you choose the homepage.
That should do it.
Your CMS Page Identifier should be home
I was running into the same issue. No matter what I did, the home page came back as a 404. I had it working on a test server (with a different database) and compared the options side by side. Absolutely nothing worked, the home page, named 'home' and the 'cms' was properly set, mod_rewrite working, htaccess file just peachy...but domain.com/ wouldn't work. after a few hours I saw that domain.com/home/ did, though I swear it hadn't been.
Finally I wiped the blood off the keyboard where I'd been smashing my head against it and went into url rewrite management and set id path to '/', request path to '/' and target path to '/home/' and it works like it should have all along. Hope this helps someone else!