1

https://www.drupal.org/project/simple_sitemap/

I am using above module

abc.com/admin/config/search/simplesitemap

enter image description here

When I am generating sitemap via UI or drush simple_sitemap-generate command.

It is using

 <url>
  <loc>http://default/ja</loc>
  <xhtml:link rel="alternate" hreflang="en" href="http://default/ja"/>
  <xhtml:link rel="alternate" hreflang="ja" href="http://default/ja"/>
  <changefreq>daily</changefreq>
  <priority>1.0</priority>
 </url>

On my Website I am using only English language. Other languages are configured. But not using that.

How to remove those?

1 Answer 1

4

This happenes when generating the sitemap via CLI cron without --uri parameter. Either pass the Domain into the CLI

drush --uri=https://www.example.com simple-sitemap:generate

or use the web interface to generate the sitemap.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.