Copied to clipboard

Flag this post as spam?

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


  • Jonas Eriksson 930 posts 1825 karma points
    Sep 24, 2013 @ 16:40
    Jonas Eriksson
    0

    One particular media item is not served under one of the subdomains (strange)

    In one site with multiple hosts (www.sitea.com, www.siteb.com) we host a few pdf documents. They can normally be accessed from both hosts domains (www.sitea.com/media/123/one.pdf and www.siteb.com/media/123/one.pdf). But one particular document causes a 404 on a one of the domains. 

    I cannot figure out what possible causes could do this. Any ideas? What am I missing?

  • Jonas Eriksson 930 posts 1825 karma points
    Sep 25, 2013 @ 09:28
    Jonas Eriksson
    0

    Using a "temporary" workaround to make pdf's open on the other domain :-p

    $("a[href$='.pdf']").attr("href", function(i,href){return "http://www.sitea.com" + href});

  • 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