<p>Oil was right. For images you need to change your baseUrl at Settings → Assets → <em>your volume</em> → Base URL</p>

CC BY-SA 4.0
2021-09-21T15:53:36.337Z
2021-09-21T15:53:36.337Z
Jonathan Schiffner
<p>I just moved my old craft site to a subdomain. I changed it in the general settings, in the config/general.php file and in the .env file.</p>
<p>Everything works except for <code>.getUrl()</code>. This still returns the old domain and therefore no pictures are loading. Here is my example: <a href="https://historie.christlicher-gesundheitskongress.de/" rel="nofollow noreferrer">https://historie.christlicher-gesundheitskongress.de/</a></p>
<p>Where does the <code>.getUrl()</code> come from?</p>

CC BY-SA 4.0
2021-09-21T04:16:22.193Z
Check your Settings → Assets → _your volume_ → Base URL
Oli
<siteurl>
getUrl returning wrong url after site move to subdomain
# getUrl returning wrong url after site move to subdomain

(Asked by: username_0 on 2021-09-20)

I just moved my old craft site to a subdomain. I changed it in the general settings, in the config/general.php file and in the .env file.

Everything works except for `.getUrl()`. This still returns the old domain and therefore no pictures are loading. Here is my example: <https://historie.christlicher-gesundheitskongress.de/>

Where does the `.getUrl()` come from?

**Tags:** siteurl

> **Comments:**
> **username_1**: Check your Settings → Assets → _your volume_ → Base URL  

---

## 1 answers

### Answer by username_0 on 2021-09-21. Score: 1

Oil was right. For images you need to change your baseUrl at Settings → Assets → *your volume* → Base URL


---

