Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • David Daly 7 posts 91 karma points
    Oct 11, 2017 @ 12:49
    David Daly
    0

    Media items have old url after moving site

    Hi all, I recently moved my Umbraco site and everything appears to be working as expected, except media items are still using the old url (and aren't displaying).

    I'm not sure why this is as other nodes seem to work fine when using ".Url" property.

    Any help would be great, thanks in advance.

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Oct 11, 2017 @ 13:05
    Alex Skrypnyk
    0

    Hi David

    Where did you move your site? From one host to another?

    Can you show examples of urls?

    THanks,

    Alex

  • David Daly 7 posts 91 karma points
    Oct 11, 2017 @ 13:19
    David Daly
    0

    Hi Alex, thanks for the quick response.

    I have taken a copy of the database and changed the connection string in the web.config to point to the copy but on running the project the images have the same src as before even after republishing entire site.

    Code reads:

    <img title="Unknown" class="authorImage" alt="Unknown" src="/thirtyonedev/media/1042/default.jpg">
    

    Should read:

    <img title="Unknown" class="authorImage" alt="Unknown" src="localhost:50869/media/1042/default.jpg">
    

    I'm guessing.

Please Sign in or register to post replies

Write your reply to:

Draft