Notifications
Clear all

[Solved] How to fix sitemap issue with ?lang=en paramater

6 Posts
3 Users
3 Reactions
1,098 Views
ldj72
Posts: 95
Topic starter
(@ldj72)
Estimable Member
Joined: 2 years ago

Hi @chris

I saw the previous thread had been closed, so I opened a new one related to the previous one.

I am using WPML for my forum in french and English. I got the point regarding page ID and board ID.

If I want to get my post in English on the sidebar, I have to create a page in English in WordPress using ?lang=en parameter, which means the forum URL is xxx..com/community_en/?lang=en, not xxx.com/community_en/

My issue is with the sitemap.  There is no xxx..com/community_en?lang=en/sitemap.xml file. It's an issue for SEO and Google indexing the English forum.

When I try to set community/?lang=en as a slug in the Boards admin panel, it changes it to "community-langen"

It erases the ? and =

When I click on sitemap https://xxx.com/community-langen/sitemap.xml because It doesn't find "community-langen" it shows me the default ones from /community

Sitemaps
https://xxx.com/community/topic-sitemap1.xml
https://xxx.com/community/forum-sitemap.xml

 

Please advise.

 

 

Topic Tags
5 Replies
Chris
Posts: 3627
(@chris)
Famed Member
Joined: 3 years ago

HI @ldj72,

You have changed the board slug and it's not the same as the page slug, fix that.

Posted by: @ldj72

If I want to get my post in English on the sidebar,

I don't follow this part, what posts? And showing in the sidebar, like showing in a widget?

 

ldj72
Posts: 95
Topic starter
(@ldj72)
Estimable Member
Joined: 2 years ago

Hi @Chris,

I have to keep this structure  https://xxx.com/community_en/?lang=en

The parameter ?lang=en allows us to show of English posts in the sidebar and not French posts.

I can easily create a https://xxx.com/community_en/?lang=en with WordPress and put [wpforo] code into this page with the correct board id connected to the proper page id.

My issue is with the slug and sitemap.

For now, if I write this slug community_en/?lang=en in wpforo admin panel, it switches automatically  to community_en-langen

It removes "?" and "=," so the URL is wrong and I don't get a sitemap.

How to fix that? can I write in hard into the database?

Thanks

ldj72
Posts: 95
Topic starter
(@ldj72)
Estimable Member
Joined: 2 years ago

@Chris, I tried a workaround, but I still have the same issue with the sitemap.

 

I changed the language structure for my site from /?lang=en to /en to avoid ? or =

Now my structure is

  • Page id (2310) - Board 0 xxx.com/community for French 
  • Page id (6959) - Board 7 xxx.com/en/community_en For English

When I mouse hover the sitemap for board 7 (English), it shows xxx.com/community_en without en.

So because this URL, xxx.com/community_en, doesn't exist on my site, when I click on it, it shows the sitemap of Board 0 (French). The default one for /community

It means I can't share a sitemap with google, which is unsuitable for SEO.

Please advise. I am ready to share my admin panel again.

Thanks

Tutrix
Posts: 1453
(@tutrix)
Noble Member
Joined: 5 years ago

Posted by: @ldj72

So because this URL, xxx.com/community_en, doesn't exist on my site

the english sitemaps exist

https:// bla..bla...bla....com/en/community_en/sitemap.xml

https:// bla..bla...bla....com/en/community_en/topic-sitemap1.xml

https:// bla..bla...bla....com/en/community_en/forum-sitemap.xml
Page 1 / 2