# Wrong URL in sitemap and not complete

**URL:** <https://forum.shopware.com/t/wrong-url-in-sitemap-and-not-complete/93959>\
**Category:** Shopware 6 (English)\
**Created:** [15. April 2022 um 15:39 UTC](https://forum.shopware.com/t/wrong-url-in-sitemap-and-not-complete/93959 "2022-04-15T15:39:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![magnus](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/magnus/32/13222_2.png) [@magnus](https://forum.shopware.com/u/magnus)\
**Post date:** [15. April 2022 um 15:39 UTC](https://forum.shopware.com/t/wrong-url-in-sitemap-and-not-complete/93959/1 "2022-04-15T15:39:02Z")

</div>

I have generated a sitemap using the Terminal (php bin/console sitemap:generate). But it have a strange URL and seems not to be complete.

Here is the complete generated sitemap:

`<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>https://dev.kattgodis.hemsida.eu/public</loc><lastmod>2022-04-15</lastmod><changefreq>daily</changefreq><priority>1.0</priority></url></urlset>`

The URL in is not correct and should be „[https://kattgodis.nu](https://kattgodis.nu)“. When I add the sitemap to Google Search Console, I get, of course, an error: URL not allowed

In the store admin, under Sales Channels \> Domains: kattgodis.nu (both http and https).

What have I done wrong?

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [20. April 2022 um 11:47 UTC](https://forum.shopware.com/t/wrong-url-in-sitemap-and-not-complete/93959/2 "2022-04-20T11:47:41Z")

</div>

> [@magnus](#):
>
> [https://dev.kattgodis.hemsida.eu/public](https://dev.kattgodis.hemsida.eu/public)

Why is you store still accessible under this URL? Is it still a URL in a sales channel? If so, delete it. There should only be [https://kattgodis.nu](https://kattgodis.nu) also delete the http:// since it is unsafe.

---

<div class="post-metadata">

**Author:** ![magnus](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/magnus/32/13222_2.png) [@magnus](https://forum.shopware.com/u/magnus)\
**Post date:** [20. April 2022 um 14:01 UTC](https://forum.shopware.com/t/wrong-url-in-sitemap-and-not-complete/93959/3 "2022-04-20T14:01:13Z")

</div>

Hey Max\_Shop  
Thanks. The dev URL was deleted a few days ago and I have now deleted the HTTP version of the URL. So in the domain section there are now only [https://kattgodis.nu](https://kattgodis.nu)

I need to contact my service provider why the dev URL still is accessible.

This is my first time with Shopware, and one important thing I have learned is to never, ever install under a development URL. Seems easier and safer to use the real URL - and during development update the local host file.

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [20. April 2022 um 14:32 UTC](https://forum.shopware.com/t/wrong-url-in-sitemap-and-not-complete/93959/4 "2022-04-20T14:32:45Z")

</div>

I’ve never had an issue with changing the URL in Shopware. Usually it is just one edit in the backend and one under [shopware.com](http://shopware.com)

Maybe the old url is stored in your .env?

---

<div class="post-metadata">

**Author:** ![magnus](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/magnus/32/13222_2.png) [@magnus](https://forum.shopware.com/u/magnus)\
**Post date:** [21. April 2022 um 05:14 UTC](https://forum.shopware.com/t/wrong-url-in-sitemap-and-not-complete/93959/5 "2022-04-21T05:14:29Z")

</div>

You was correct. The old URL was still in the .env file (now fixed). And new sitemap is generated.

Most of the issues have been at the service provider. The installation was not done in the „public\_html“ folder because I used a dev URL. So in order to get SW working under the right URL, they have to do a symlink.

Now I hope everything is correct. 🙂

Thanks again
