Results 1 to 10 of 2445

Hybrid View

  1. #1
    Join Date
    Oct 2007
    Posts
    412
    Plugin Contributions
    0

    Default Re: CEON URL working with Multi-language SEO URLs

    Quote Originally Posted by tonibarcelona View Post
    I havenīt tested, so please report if it works.
    Thanks a lot, it works except that it never defines the "en" language.

    If I use your first solution then I get this:
    <link rel="alternate" href="http://www.mysite.com/es/blahblah" hreflang="es" />
    <link rel="alternate" href="http://www.mysite.com/en/blahblah" hreflang="x-default" />
    <link rel="alternate" href="http://www.mysite.com/en/blahblah" hreflang="en" />

    If I use your second solutioin then I only get this:
    <link rel="alternate" href="http://www.mysite.es/es/blahblah" hreflang="es" />
    <link rel="alternate" href="http://www.mysite.co.uk/en/blahblah" hreflang="x-default" />

    (the domains are correct but the hreflang for english is missing).


    Quote Originally Posted by tonibarcelona View Post
    I have a question for you: Do you run both domains with the same installation.? If so, how do yo do it, with the multisite mod?
    Yes, I have both domains on same server (and same zencart installation). I only have the CEON module installed, and then I have the following redirection in my htaccess file:

    RewriteCond %{HTTP_HOST} ^(www\.|)tronicore\.dk$ [NC]
    RewriteRule ^(da)/.* [QSA,L]

    Im not sure this is the right way to do it, but it seems like its working except for the hreflang tags. You can see it here www.tronicore.co.uk.

  2. #2
    Join Date
    Feb 2007
    Location
    Barcelona
    Posts
    201
    Plugin Contributions
    0

    Default Re: CEON URL working with Multi-language SEO URLs

    Quote Originally Posted by DML73 View Post
    Thanks a lot, it works except that it never defines the "en" language.

    If I use your first solution then I get this:
    <link rel="alternate" href="http://www.mysite.com/es/blahblah" hreflang="es" />
    <link rel="alternate" href="http://www.mysite.com/en/blahblah" hreflang="x-default" />
    <link rel="alternate" href="http://www.mysite.com/en/blahblah" hreflang="en" />

    If I use your second solutioin then I only get this:
    <link rel="alternate" href="http://www.mysite.es/es/blahblah" hreflang="es" />
    <link rel="alternate" href="http://www.mysite.co.uk/en/blahblah" hreflang="x-default" />

    (the domains are correct but the hreflang for english is missing).




    Yes, I have both domains on same server (and same zencart installation). I only have the CEON module installed, and then I have the following redirection in my htaccess file:

    RewriteCond %{HTTP_HOST} ^(www\.|)tronicore\.dk$ [NC]
    RewriteRule ^(da)/.* [QSA,L]

    Im not sure this is the right way to do it, but it seems like its working except for the hreflang tags. You can see it here www.tronicore.co.uk.
    Mmmmm, I think you have several things wrong at your end:
    Language flags doesnīt work as expected, they always redirected to home

    try with this:

    if ($ceon_por_lengua_query!=''){
    if ($cat_lng['code']=='es'){$domaintoshow='http://www.mysite.es';}if ($cat_lng['code']=='en'){$domaintoshow='http://www.mysite.co.uk';}else {$domaintoshow='http://www.mysite.co.uk';}
    if ($cat_lng['code']==DEFAULT_LANGUAGE){echo '<link rel="alternate" href="http://www.mysite.com.co.uk' . $ceon_por_lengua_query. '" hreflang="x-default" />';}




    echo '<link rel="alternate" href="'.$domaintoshow.' . $ceon_por_lengua_query. '" hreflang="' . $cat_lng['code'] . '" />'.PHP_EOL;
    }



    Itīs a very too late & I havenīt the time to test it. the code can by sure be better rewritten. If this doesnīt work, I can take another look on Monday !!

  3. #3
    Join Date
    Oct 2007
    Posts
    412
    Plugin Contributions
    0

    Default Re: CEON URL working with Multi-language SEO URLs

    Quote Originally Posted by tonibarcelona View Post
    Mmmmm, I think you have several things wrong at your end:
    Language flags doesnīt work as expected, they always redirected to home

    try with this:

    if ($ceon_por_lengua_query!=''){
    if ($cat_lng['code']=='es'){$domaintoshow='http://www.mysite.es';}if ($cat_lng['code']=='en'){$domaintoshow='http://www.mysite.co.uk';}else {$domaintoshow='http://www.mysite.co.uk';}
    if ($cat_lng['code']==DEFAULT_LANGUAGE){echo '<link rel="alternate" href="http://www.mysite.com.co.uk' . $ceon_por_lengua_query. '" hreflang="x-default" />';}
    echo '<link rel="alternate" href="'.$domaintoshow.' . $ceon_por_lengua_query. '" hreflang="' . $cat_lng['code'] . '" />'.PHP_EOL;
    }
    Itīs a very too late & I havenīt the time to test it. the code can by sure be better rewritten. If this doesnīt work, I can take another look on Monday !!
    Thanks for the suggesion, unfortunately it didn't work, it gives me an internal server error 500.

    I know my language flags does not work exactly as they should, they redirect to my hom page, I still haven't figured out how to fix that.

  4. #4
    Join Date
    Oct 2007
    Posts
    412
    Plugin Contributions
    0

    Default Re: CEON URL working with Multi-language SEO URLs

    Addition to my reply above. I changed:

    echo '<link rel="alternate" href="'.$domaintoshow.' . $ceon_por_lengua_query. '" hreflang="' . $cat_lng['code'] . '" />'.PHP_EOL;
    to
    echo '<link rel="alternate" href=".$domaintoshow.' . $ceon_por_lengua_query. '" hreflang="' . $cat_lng['code'] . '" />'.PHP_EOL;

    now Im getting:

    <link rel="alternate" href=".$domaintoshow./da/blahblah" hreflang="da" />
    <link rel="alternate" href="http://www.mysite.co.uk/en/blahblah" hreflang="x-default" />
    <link rel="alternate" href=".$domaintoshow./en/blahblah" hreflang="en" />

    Close but still not right.
    Last edited by DML73; 11 Oct 2014 at 04:14 AM.

  5. #5
    Join Date
    Feb 2007
    Location
    Barcelona
    Posts
    201
    Plugin Contributions
    0

    Default Re: CEON URL working with Multi-language SEO URLs

    Quote Originally Posted by DML73 View Post
    Addition to my reply above. I changed:

    echo '<link rel="alternate" href="'.$domaintoshow.' . $ceon_por_lengua_query. '" hreflang="' . $cat_lng['code'] . '" />'.PHP_EOL;
    to
    echo '<link rel="alternate" href=".$domaintoshow.' . $ceon_por_lengua_query. '" hreflang="' . $cat_lng['code'] . '" />'.PHP_EOL;

    now Im getting:

    <link rel="alternate" href=".$domaintoshow./da/blahblah" hreflang="da" />
    <link rel="alternate" href="http://www.mysite.co.uk/en/blahblah" hreflang="x-default" />
    <link rel="alternate" href=".$domaintoshow./en/blahblah" hreflang="en" />

    Close but still not right.
    And this?:

    echo '<link rel="alternate" href="'. $domaintoshow . $ceon_por_lengua_query . '" hreflang="' . $cat_lng['code'] . '" />'.PHP_EOL;

  6. #6
    Join Date
    Feb 2007
    Location
    Barcelona
    Posts
    201
    Plugin Contributions
    0

    Default Re: CEON URL working with Multi-language SEO URLs

    ey!! You did it!!
    congrats

  7. #7
    Join Date
    Feb 2007
    Location
    Barcelona
    Posts
    201
    Plugin Contributions
    0

    Default Re: CEON URL working with Multi-language SEO URLs

    -not, not yet:

    <link rel="alternate" href="http://www.tronicore.com.co.uk/en/serial-port-cards" hreflang="x-default" />

 

 

Similar Threads

  1. v139d Ceon uri mapping, how to generate uri mapping for bulk bulk-imported products?
    By mybiz9999 in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 8 Jan 2013, 06:52 AM
  2. CEON URI Mapping
    By jmkent in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 22 Nov 2012, 04:28 PM
  3. Ceon URI Mapping (SEO)
    By conor in forum All Other Contributions/Addons
    Replies: 2906
    Last Post: 9 Sep 2011, 08:31 AM
  4. Ceon URI Mapping v4
    By conor in forum All Other Contributions/Addons
    Replies: 110
    Last Post: 14 Aug 2011, 02:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg