Welcome to Geeklog Sunday, June 16 2019 @ 04:37 am EDT

Geeklog Forums

multi language site


Status: offline

ivy

Forum User
Full Member
Registered: 25/11/04
Posts: 309
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:

PHP 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:
PHP 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

Status: offline

DavidS24

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

All times are EDT. The time is now 04:37 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