I am running Magento 184.108.40.206 on Nginx version 1.9.4. I have URL rewrite configured and turned on and all my product and category URLs (of type System) seem to work fine. However when I set up a rewrite rule of type Custom, and then access it, it gives me a blank white (no Magento template) 404 error page.
So what I am trying to achieve is this. I am migrating from an old store over to Magento. The old store has listings in google. I simply want to make sure that when someone accesses "www.mydomain.com/store/index.php?id=1&......" once I switch over to magento, that it will redirect it with a Permanen 301 to "catalog/product/view/id/1". Hope that this makes sense, and hope that this is what the URL rewrite tool inside Magento admin is for.
Again, the other rewrite stuff seems to work just fine. Just this doesn't.
Please let me know what I am doing wrong. Thank you.
same problem for me.
running Magento 220.127.116.11 CE (multilanguage with 2 store view: 1 for Italian and 1 for English language)
mod rewrite enable: yes
I'm trying to redirect the old url (old joomla store with a good google rank) to the new products' urls.
all works fine but this.
I've tried to figure it out and experienced what detailed below:
1. if I set Italian in System -> Store view as 'Sort Order' = 0 and English as 'Sort Order' =1 NO custom urls will work
2. If I set English in Sistem -> Store view as 'Sort Order' = 0 and Italian as 'Sort Order' =1 SOME English customs-urls work but not all of them: anyway NO italian custom URL work.
Any tip / hint will be highly appreciated. I've surfed the web for all the possible solution and tried dozens with no avail.
NOTE: default URLs are working like charm
Have I tried to reindex? yep!
cache? var/cache is empty like my pocket..
thanks for taking the time for answering, appreciate it.
well, just to clarify a little better my issue:
1) Running with Apache 2.2.29
2) an example of old URL: en/woodworking-machines/impregnating/impregnating-di0-60
new URL: woodworking-machines/impregnating-machines/impregnating-machine-di0-60.html
(complete new URL: www.dimecinternational.com/en/woodworking-machines/impregnating-machines/impregnating-machine-di0-60... -> no need to add en/ at the beginning because when creating the custom URL I choose Store -> English)
3) I do get the Magento “oops” 404 page (see: www.dimecinternational.com/en/woodworking-machines/impregnating/impregnating-di0-60)
so.. plenty of room for "food for thought" here.. I highly appreciate your help and, of course, I'll keep you up to date.
By the way,
we've restricted a little bit the issue:
It's turning out that the user always land on the default-language page.
If we create 2 custom 301 redirect for product A in the following way:
1) store View English: Request Path: product-a-it Target Path: new-product-a-en
2) store View Italiano: Request Path: product-a-it Target Path: new-product-a-it
when we paste the URL in the browser we'd get the user anyway landing on the right product/category and need only to switch language.
the issue remain when clicking on the google page indexing that link: in that case we'd land on the home page no matter of the 2 custom URL.
I haven't seen a nothing about that kind of issue with multilanguage (surfing the web for almost 2 days) and I'm starting to think that it could be more a "conceptual" issue than a "technical" issue.
it's the first time we've to redirect old URL using 301 (cause site migration from an old joomla website) and perhaps we're looking at the problem from a wrong perspective.
if anyone know a good way to accomplish a good 301 redirect in MULTILANGUAGE (having old URLs that clearly need to be redirected to the new ones) and wants to share it.. is more than welcome!
thanks for the answer.
I troubleshooted the issue following what you suggested and I found I set up the store in the right way.
Anyway your "food for thought" take me a little bit closer to the solution.
The problem seems to be the fact that the URL are NOT unique for the Website but they are unique for any Store-View.
Hence, when redirecting, Magento search the address only inside the Sore-view where you currently are (when pasting the address in the URL after the domain name) or searching in the default Sore-View (English for me) if you click a link from outside the website.
So the question is:
how can I set the scope of the URL so it will be unique for the Store-view?
I tried to set the scope of the URL_key attribute (Catalog - Attribute) as Store_view but when I try to add an URL-Rewrite I am only allowed to choose 1 Store-view (I can not select the Website or the Sore: only the View).
I reckon, if I could insert the URL to be redirected as a Website scope I could get the redirect to the right Store-view (remembering that for me a Store-view is used only for multilanguage purposes).
have a great day,