Topic on Project:Support desk/Flow

Different way to create sitemaps with only non-www URLs of the website

3
Summary by Biologically

I forgot to change the $wgServer value in localsettings.php

Biologically (talkcontribs)

I usually prefer the non-www URL for my website (http://learni.online , not http://www.learni.online ). But Google considers www and non-www version as two different websites, so we need to submit both URLs in the Google webmaster tools to index both the links in Google. Then we can set a preferred version of the URL in Google webmaster tools, which in my case is the non-www version of the URL.

But then you need to submit sitemaps that lists only your preferred version of the URLs. And there I am facing problem.

My sitemaps are listing the links in www version.

How should I instruct the programs to generate sitemaps without www in the URLs? Please help.

Bawolff (talkcontribs)

Check that $wgServer doesn't contain the www.

Biologically (talkcontribs)

Thank you, thank you, thank you. This exactly was the problem.