Welcome to Geeklog, Anonymous Friday, March 29 2024 @ 01:36 am EDT

Geeklog Forums

multi language site


Status: offline

ivy

Forum User
Full Member
Registered: 11/25/04
Posts: 314
Location:Tokyo Japan
This is multi language site.

top page:
https://www.yokosojapan.net <= regist search engine
https://www.yokosojapan.net/index.php/topic/home_ja
https://www.yokosojapan.net/index.php/topic/home_en
https://www.yokosojapan.net/index.php/topic/home_ch
https://www.yokosojapan.net/index.php/topic/home_ko

Thank you for adding hreflang code.
https://github.com/Geeklog-Core/geeklog/commit/4b350d5ffea929af7225d20b8772f8818c89d91d

but now I have to add this code in header.thtml:

Text Formatted Code

<?php if( COM_onFrontpage() ) { ?>
<link rel="alternate" href="{site_url}/index.php/topic/home_ja" hreflang="ja"{xhtml}>
<link rel="alternate" href="{site_url}/index.php/topic/home_en" hreflang="en"{xhtml}>
<link rel="alternate" href="{site_url}/index.php/topic/home_zh" hreflang="zh"{xhtml}>
<link rel="alternate" href="{site_url}/index.php/topic/home_ko" hreflang="ko"{xhtml}>
<link rel="alternate" href="{site_url}/" hreflang="x-default"{xhtml}>
<?php } ?>
 


and add hreflang="x-default" to language top page header.thtml
https://www.yokosojapan.net/index.php/topic/home_ja
https://www.yokosojapan.net/index.php/topic/home_en
https://www.yokosojapan.net/index.php/topic/home_zh
https://www.yokosojapan.net/index.php/topic/home_ko

add this code in header.thtml:
Text Formatted Code

<?php $url_current = COM_getCurrentURL(); if( strpos( $url_current, '/index.php/topic/home_' ) !== false ) { ?>
<link rel="alternate" href="{site_url}/" hreflang="x-default"{xhtml}>
<?php } ?>
 



other page are all okay.


but switchlang.php have problem, I think.

display https://www.yokosojapan.net/index.php/topic/home_ja
click "en" switchlang/en
display staticpages plugin en data. but topic title(center area top) is ja, and url is ja, too.

reflesh url en and display en topic.

1 language content 1 url for crawler.




Geeklog Japan https://www.geeklog.jp
 Quote

Status: offline

DavidS24

Forum User
Newbie
Registered: 04/18/19
Posts: 1
How did you optimize these websites? Any seo strategies?
 Quote

shital1896

Anonymous
how can you handle this multi-language site
 Quote

All times are EDT. The time is now 01:36 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content