Re: CEON URL working with Multi-language SEO URLs
Quote:
Originally Posted by
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:
www.site.co.uk
www.site.dk
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?
Possible to do with this version of CEON rewriter. I'm a long ways away fom a computer to be able to tinker with. The htaccess that maybe necessary. I do know that in working with the module I have it working on a single server with multiplesubfolders each having their own "store" tobeable to try different setups. The request is beyond the typical usage/design (utogenerrated htaccess doesn't generate *all* of the applicable statements.) But it is something thatcan be done.
Would be good to understand things like are all of thesame products provided, is it just a language thing, anything else that may help the overall solution. (Whichmaynot be to simply get ceon uri rewriter to work as described...
Nd please forgiveme, I have been out in the heat the last three days fora long period of time. I already know that to help o will need to reread thepecious setup description, butit would help to state itconcisely.
Re: CEON URL working with Multi-language SEO URLs
Quote:
Originally Posted by
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?
Quote:
Originally Posted by
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:
Quote:
Originally Posted by
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!
Quote:
Originally Posted by
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:
www.site.co.uk
www.site.dk
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..
Quote:
Originally Posted by
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
Quote:
Originally Posted by
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
Re: CEON URL working with Multi-language SEO URLs
I Cannot solve this:
I have structured the int. urls. like this: /mysite.com/en/blahblah, /mysite.com/fr/blahblah,...but it is impossible to me to map the homepage: mysite.com/en
Any idea? (tested mapping at db and rewritting with htaccess with nosuccess)
Re: CEON URL working with Multi-language SEO URLs
Quote:
Originally Posted by
tonibarcelona
I Cannot solve this:
I have structured the int. urls. like this: /mysite.com/en/blahblah, /mysite.com/fr/blahblah,...but it is impossible to me to map the homepage: mysite.com/en
Any idea? (tested mapping at db and rewritting with htaccess with nosuccess)
Code:
INSERT INTO `ceon_uri_mappings` (`uri` ,`language_id` ,`current_uri` ,`main_page` ,`query_string_parameters` ,`associated_db_id` ,`alternate_uri` ,`date_added`)
VALUES ( '/mysite.com/fr','2','1','index','language=fr',NULL ,NULL , NOW()
);
This assumes that French is language id 2; although I had also inadvertently used a value of '1' and obtained the same final result.
It doesn't replace the link provided at the language flags, but entering the link using the two letter language designation does result in landing on the home page in the language identified by the two letter abbreviation.
Not sure that using the mysite.com approach is correct meaning having the period included... I have seen a site before that had problems with having a subfolder of mysite.com instead of mysitedotcom or some full text only method.
Re: CEON URL working with Multi-language SEO URLs
Quote:
Originally Posted by
DivaVocals
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.
The reason currently is that the "Multi-language SEO URLs" module adds the hreflang tags correctly to all zencart pages. As far as I can see the CEON module by its own does not.
Maybe not a necessity but would be nice to have.
Re: CEON URL working with Multi-language SEO URLs
Quote:
Originally Posted by
DML73
The reason currently is that the "Multi-language SEO URLs" module adds the hreflang tags correctly to all zencart pages. As far as I can see the CEON module by its own does not.
Maybe not a necessity but would be nice to have.
Seems to me that it is not up to the CEON module to add the tags, but instead should be a function of ZC that just happens to be supported or continued by the CEON module. Didn't find a reference to hreflang in zc 1.5.3 so would say that it is not an issue with CEON URI...
Re: CEON URL working with Multi-language SEO URLs
Quote:
Originally Posted by
DML73
The reason currently is that the "Multi-language SEO URLs" module adds the hreflang tags correctly to all zencart pages. As far as I can see the CEON module by its own does not.
Maybe not a necessity but would be nice to have.
and one thing Conor was a STICKLER about was that his module's played well with other modules, and that the way to do this was to follow Zen Carts established coding standards.. Ceon URI has supported multi-languages since 2011, so there REALLY is NO REASON to make it work with the "Multi-language SEO URLS" module..
From the readme:
Quote:
- Full Multi-language Support - including Transliteration and UTF-8!
- The module is fully multilingual - every page can have a URI mapping for each language supported by the store!
- The module automatically causes Zen Cart to use the language the URI uses, greatly enhancing Zen Cart's language functionality!
- This multi-language functionality makes it likely that the site will feature much higher in search engine listings specific to the various languages the store supports.
- The module also has full support for transliteration! When using the URI mapping auto-generation functionality it transliterates the names/titles from any language into plain ASCII, the format used by URIs.
- Transliteration support means that characters outside of the standard character set allowed in URIs won't just be stripped from the URI, leaving words with letters missing. For example, “á” is replaced with “a”, “ß” is replaced with “ss” etc.
- The transliteration support extends to supporting the UTF-8 character set, so Japanese, Chinese characters etc. are all handled easily!
Re: CEON URL working with Multi-language SEO URLs
and from another episode of RTFM... From the Ceon URI readme..
Quote:
Specifying the current URI Mapping for a Product
Specifying the current URI mapping for a Product, for each language used by the store, is easily accomplished:
- Use Catalog > Categories/Products to navigate to the product the desired product is within.
- Click the (green) icon for “Edit” alongside the product's name or click the “New Product” button if adding a new product.
The URI mapping can be automatically generated using the store's URI mapping auto-generation settings:
- The URI mapping fields can be found at the bottom of the page.
- Simply tick the URI mapping auto-generation text box and click “Preview”.
- The URI mapping will then be generated using the full path to the current product and the name of the product. For stores with multiple languages, a URI mapping will be generated for each language, using the respective product names entered for each language.
- The auto-generated URI mappings for each language the store is using will be displayed below the product's description.
- Click “Update” to save the product's information, including its URI mapping(s).
So it's still not clear WHY the Ceon URI module should be made to work with the "Multi-language SEO URLS" module to add SUPPORT for a feature already SUPPORTED by the Ceon URI module..
Now that said, this is an OPEN SOURCE module.. and as such since this module TRULY doesn't have what I consider an ACTIVE maintainer (one who will TRULY look after this module as bugs and upgrades to Zen Cart occur) ANYONE can certainly take over the care and upkeep of this module, or fork it and add this feature.. However, it hasn't been made clear why this is needed if it's ALREADY SUPPORTED..
Re: CEON URL working with Multi-language SEO URLs
Quote:
Originally Posted by
mc12345678
Code:
INSERT INTO `ceon_uri_mappings` (`uri` ,`language_id` ,`current_uri` ,`main_page` ,`query_string_parameters` ,`associated_db_id` ,`alternate_uri` ,`date_added`)
VALUES ( '/mysite.com/fr','2','1','index','language=fr',NULL ,NULL , NOW()
);
This assumes that French is language id 2; although I had also inadvertently used a value of '1' and obtained the same final result.
It doesn't replace the link provided at the language flags, but entering the link using the two letter language designation does result in landing on the home page in the language identified by the two letter abbreviation.
Not sure that using the mysite.com approach is correct meaning having the period included... I have seen a site before that had problems with having a subfolder of mysite.com instead of mysitedotcom or some full text only method.
Many thanks mc12345678 for your help and good intentions, but this doen´t work. I did it weeks ago and the redirection Works, but... zen-cart doesn´t recognize this as the homepage and renders the common index template.
Re: CEON URL working with Multi-language SEO URLs
Quote:
Originally Posted by
tonibarcelona
Many thanks mc12345678 for your help and good intentions, but this doen´t work. I did it weeks ago and the redirection Works, but... zen-cart doesn´t recognize this as the homepage and renders the common index template.
That would be because what you consider the "homepage" is for you not the index page. What pray tell then if not the index page is your homepage? For my test case where I have/had a "second" language installed, it was if I visited the page identified in the language chosen. In my case the index.php page which was written/offered in two different languages...
If your home page is anything other than index, then you need to identify the parameters that would need to be manually inserted into the database that would otherwise be "displayed" to get to that point. If it be an ezpage, a category page, a product page, etc... Etc... ETC...
Would suggest adding it to the database as a status of 0 as it probably already exists as a different listing that is active, but if it doesn't already exist as some other redirection path, then it should be a status of 1.