Copied to clipboard

Flag this post as spam?

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


  • Christoffer Frede 16 posts 126 karma points
    Aug 26, 2016 @ 09:20
    Christoffer Frede
    0

    site redirected media 404

    Hey.

    I have an Umbraco site that runs live on windows server/ iis 7. it has the domain of http://subsite.somedomain.com. so far so good...

    For some reasons(probably SEO), we have redirected the site to another url from another site so that the site is available from the Url http://shop.somedomain.com

    That is all good and i can open the site with the Url http://shop.somedomain.com, but the problem on this url is, that when getting all the media files from the umbraco server it uses the url http://shop.somedomain.com/media/1577/picture.jpg which does not exist because the media files is located at http://subsite.somedomain.com/media

    i have tried to change the path of Umbraco's media filelocation to an absolute path, in the /Config/FileSystemProviders config file. but without succes. so i would be awesome if anyone could help me with : am i one the right track with changing medias filelocation or do i need to do something else to make it work ?

    Regards Christoffer

  • Dennis Adolfi 1082 posts 6450 karma points MVP 6x c-trib
    Aug 27, 2016 @ 09:05
    Dennis Adolfi
    0

    Hi Christoffer. It doesn't sound like you are redirecting (301) to the new site, but it actually sounds like you are using two different live url's for the same site.

    I terms of canonical url's, I think that most search engines doesn't like that on site/page can have multiple different url's. More about canonical url's: https://moz.com/learn/seo/canonicalization

    https://webmasters.googleblog.com/2009/12/handling-legitimate-cross-domain.html?m=1

    You should probably do a 301 redirect from shop.somedomain.com to subside.somedomain.com, which will then automatically fix your problem.

    Hope this helped.

    Take care!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies