Totally Zenned
- Join Date:
- Jan 2007
- Location:
- Los Angeles, California, United States
- Posts:
- 10,011
- Plugin Contributions:
- 3
Ceon URI Mapping v4.x
DML73:
Im trying to get CEON URL working with Multi-language SEO URLs (http://www.zen-cart.com/downloads.php?do=file&id=1717).
By adding:RewriteRule ^(en|es)/.* index.php [QSA,L]
to the htaccess file ("en" for english and "es" for spanish) the index pages seems to be working fine but all other pages gets a "Page not found error". I suspect the reason is that "Multi-language SEO URLs" adds the "en" and "es" directories to the URL like this:
www.mywebsite.com/en/
www.mywebsite.com/es/Is there a way to add a rule in htaccess to solve this problem? Or would the code in the CEON module need to be modified?
DML73:
The "Multi-language SEO URLs" module by itself does not do what you mention, as far as I understand. Only if I also install the "Ultimate SEO URLs" plugin as mentioned in the install instructions for the "Multi-language SEO URLs" module it will re-write the URLs. I like the "CEON URL" module better than the "Ultimate SEO URLs" plugin, that's why I would like to get it working with that instead.
So you are trying to get a module that is meant to work with a COMPLETELY DIFFERENT re-writer to work with THIS re-writer?? The short answer to how to make the "Multi-language SEO URL" module with with THIS module versus the module it was written to work with ("Ultimate SEO URLs") is is to have the "Multi-language SEO URL" module re-written to work with this module.. The question that's already been posed to you is WHY would you want to do this?? This module has supported multi-language shops since 2011.
From the FIRST PAGE of THIS support thread in the original author's OWN WORDS:
conor:
Hi,
Welcome to the new support thread for Ceon URI Mapping. At the time of writing, the latest version is v4.0.3.
The latest version of Ceon URI Mapping is always available for download here.
v4.0.3 should be available in the downloads area soon.
About the module
Use Static URIs to make web addresses Easier to Remember and Easier to Enter.
Improve the store's Rankings in Search Engines!The Ceon URI Mapping module is a very handy module that no Zen Cart site should be without!
Unlike other SEO modules, where the URIs are generated automatically when a customer visits a page, this module allows specific URIs to be entered within the admin, or even for auto-generation to be used to create a static URI for an individual category/product/manufacturer/EZ-Page/Zen Cart page.
We believe this to be a much better solution as **the store is in control of its URIs**.It lets the store specify static, human-readable, keyword-based URIs to be used instead of the dynamic, ID-based URIs which Zen Cart uses as standard.
For example, for a product, instead of dynamic URIs like this:http://yourstore.com/index.php?main_...&products_id=5
A static address - easy to read, easy to type in and full of keywords - could be specified for the product:
http://yourstore.com/books/life-is-good
It's simple to promote sections of the site on advertising literature.
For example, the following static URI could be mapped to the specials page:
http://yourstore.com/EasterSpecials
Ceon URI Mapping is packed full of features, which include:
- Full Multi-Language Support
- Canonical URI Support
- Historical URI Redirection (Never have a broken link again!)
- URI Auto-Generation
- Transliteration Support
- 100% Compatibility with Zen Cart
- As well as many more!
Give potential customers easy to enter/remember URIs and improve the site's rankings in search engines!
DML73:
I see your point. I think my situation is special because I have 2 domains, one for each language (on same server), for example:
In my htaccess file I then redirect each language to the correct site:
#danish to dk site
RewriteBase /
RewriteCond %{HTTP_HOST} ^(www.|)site.dk$ [NC]
RewriteRule ^$ index.php?&language=da [R=301,L]#english to co.uk site
RewriteCond %{HTTP_HOST} ^(www.|)site.co.uk$ [NC]
RewriteRule ^$ index.php?&language=en [R=301,L]I have found that this redirection is not working with the CEON module but it works fine with the Multilanguage SEO module, so I was trying to combine the two. However I guess a better approach would be to get the redirection code working with the CEON module instead. Any ideas?
It's simply AMAZING what you find when searching the support thread (i.e search for multi language). All from the ORIGINAL author..
conor:
Hi,
Glad you like the software.
I'm not entirely clear on what it is you want to do.. do you have two stores, one for each language, or simply one store with two different languages?
If it is the latter, then you simply adjust the URIs as you enter them for the categories/products. E.g., for products, simply add "/sub-folder/" to the start of the "French" URI Mapping for each product/category etc. (I like to have site.com/fr/xxxxx for example, that's how our aarck/aawe software works and is how all language sites should work in my opinion).
If your question is about the former, then you can simply have a rewrite rule for each store in the root's .htaccess file, but add an exclusion for the /sub-folder/ to the first rewrite rule so that it "falls over" to the second rule. Or you can make sure the first rule only applies for the second, sub-folder (French) store and "falls back" to the first rule for the root/English language store.
Certainly, I can say that what you want to do in supporting multiple languages is indeed doable with the software (a fact which is one of the software's strengths!).
All the best..
Conor
ceon
conor:
Hi,
Yes. The distribution even comes with code to get the Multi-language EZ-Pages using static URIs if you want. :)
Have a good weekend!
All the best...
Conor
ceon