links being changed to include i0.wp.com at the front

  • Unknown's avatar

    I have numerous posts with embedded images that are hosted on another server. I therefore have an img tag that looks like this:-
    <img alt="Domestic Servants" src="http://photos.shetland-museum.org.uk/image.php?i=174974&r=2&t=4&x=1" width="300" />
    When I view it as source through my browser it shows the img link to have been updated to:-
    <img alt="Domestic Servants" src="https://i0.wp.com/photos.shetland-museum.org.uk/image.php?i=174974&r=2&t=4&x=1" width="300" />

    Why does WordPress add in these i0.wp.com to my links? It’s causing them not to work anymore. There are lots of people seemingly reporting the same problem and yet all their posts are closed to further comments without any solution. From those posts and my experience, this seems to be a recent change.

    Cheers
    Morag

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    i0.wp.com Looks to be a caching server WordPress.com is using to speed up the loading of images on WordPress.com sites.

    But, I think the issue at hand is that the image you’re trying to hotlink is not actually an image file. See how the name ends in .php? That’s actually a type of web page. The site you’re linking to might use that for a number of reasons like automatically formatting the image, or to prevent hotlinking.

    Even without the added i0.wp.com code, that image embed won’t work because you’re essentially linking to a web page. You’ll have to find a supported image format to be able to put it in your post, something like a .jpg .gif or .png

    Also, with regard to linking to other images, you want to make sure the publisher has given permission for you to use it, as images are copyrighted.

    Here’s a resource to help you find free to use images if you need it.
    http://en.support.wordpress.com/add-media/finding-free-images-and-other-media/

  • Unknown's avatar

    I’m using the images exactly how the publisher demands, so that’s not an issue. In fact, it was they who noticed the added i0.wp.com being inserted into my URL as I originally thought it was a problem with their server. The images do actually work fine without the additional link text, I have no problems with Web pages that are not part of WordPress, and this used to work in WordPress, but now blog posts that previously were Ok are now not working, without any changes to the posts themselves.

    If you don’t believe me, make the following into a little html file and you’ll see it’s fine.

    <html>
    <body>
    <img src="https://photos.shetland-museum.org.uk/image.php?i=174974&r=2&t=4&x=1" >
    </body>
    </html>

    Really, I just want to know how to stop WordPress changing my URL. Can anyone tell me how to configure that?

  • Posting to reopen thread.

  • Unknown's avatar

    UPDATE: The WordPress developers looked into this for me. Here’s their description of the problem:-

    The i0.wp.com is our image cacher for images that you’ve directly linked from elsewhere. It caches them on WordPress.com so the page loads quickly, and doesn’t have to wait to grab the external image to display the page.
    The images you are directly linking to have a very unusual URL structure which has resulting in WordPress.com caching a broken image from the source. I’ll look into this right away and see if we can figure out a solution to get those images working for you. I’ll be in touch!

    Later they came back with:-

    Our developers are weighing a couple options, and we might just exempt images from that site from being cached on our site in the meantime.

    I think they might have done that, i.e. exempt the specific site I was having the issue with, as my broken blog posts are now fixed.

    I haven’t heard back from @lschuyler yet to know whether the developers have finished fixing it, or whether they have only done the temporary fix, or whether they plan to go further, but they are at least aware of the problem.

  • Unknown's avatar

    Hi
    I’ve a similar issue in trying to link my restaurant reviews to the Square Meal website, its not a PHP image, but it is a link to an image with a unique reference that Square Meal provide. They give you a little snippet of code to paste into your blog pages which then links the two together. So, for example:

    <a title="Read Square Meal's review of Salt Yard" target="_top" href="http://www.squaremeal.co.uk/restaurant/salt-yard?utm_source=Blog&utm_medium=Blog&utm_campaign=Link"><img width="160" height="27" src="http://www.squaremeal.co.uk/Views/DynamicImages/BlogSMBig.aspx?restaurant=f8e1bdf1ef5f47da9ea6e54a0599c423" alt="Square Meal" /></a>

    You can see what happens on my blog post here: https://shoutingfromcheapseats.wordpress.com/2015/03/10/salt-yard-share-and-share-alike/
    At the bottom of the post, there is a broken link where a Square Meal logo should appear.

    When I view source, the pasted in code now appears as:
    <a title="Read Square Meal's review of Salt Yard" target="_top" href="http://www.squaremeal.co.uk/restaurant/salt-yard?utm_source=Blog&utm_medium=Blog&utm_campaign=Link"><img width="160" height="27" src="https://i0.wp.com/www.squaremeal.co.uk/Views/DynamicImages/BlogSMBig.aspx" alt="Square Meal" /></a>

    So, not only has it prefixed the image link with i0wp.com, its also cut the end of the link off as well which is the all important part to enable Square Meal to do their magic. I’ve had a look at a few Square Meal pages and its always the same code but with a different ID at the end of each link. Would be great if there was a way to add exclusions to this caching if that is what is causing the problem!

  • Unknown's avatar

    I’ve contacted @lschuyler via her blog as I don’t know how else to get in contact to find out an update. The @username notation doesn’t seem to do the same thing here as it does in blog comments. If anyone knows how to let her know about this forum post, please do so.

    Many Thanks
    Morag

  • I’ll give her a ping.

  • @moraghughson, I’ve sent you a couple emails in the past month – could you please check your spam or junk folders if you haven’t received them?

  • @gavinhaynes, I’ve reported the issue you are experiencing to our developers and will let you know when we have a fix. Thanks!

  • Unknown's avatar

    Thanks Lisa, found your email (most recent) in junk folder. Thanks for all your help with this.

  • Hi @gavinhaynes! We’ve fixed the issue with the Square Meal images for you. Please let us know if there is anything else we can help with.

  • Unknown's avatar

    Hi, thanks for fixing! Slightly off-topic but slightly related at the same time (?) It appears the guys at Square Meal cannot see past the https of my blog to know I have linked my posts to them. Is there anything that can be done to alleviate this?

    Here is what their tech guys sent to me on the subject, some of which I know I couldnt do on wordpress.com:

    Your blog is coming up as an https:// which is a protection system that blocks us from reading your URL – we cannot tell from this who is accessing the site (in this case, accessing SquareMeal.co.uk). So, our system does not know who is asking for the image link back. The default setting for the https:// is called #referrer hiding’. Therefore we cannot catch any incoming requests from your site.

    What you can do is add this line to the <head> … </head> tag of the blog – <meta name=”referrer” content=”always”>

    This should allow the blog to read the own link.. and if the blog will allow us to read the link, then we can catch the blog URL.
    You can disable the security to the blog for a couple of seconds which should allow us to access the page and collect the blog review link. To do this , write the blog page, add the Square Meal logo, disable the security, accesses the new page to generate the link back, then re-activate the security.

  • Unknown's avatar

    Hi @gavinhaynes,

    I’m afraid there isn’t a way to disable https for your site. It’s enabled for all .wordpress.com site addresses. It’s also not possible to edit the head HTML portion of your site. The only workaround I can think of would be to purchase a custom domain for your site. Currently, we cannot provide custom SSL certificates for custom domains meaning your site would appear as http vs. https. If you would like to register a domain, you can do that following the steps here:

    Register a New Domain

  • The topic ‘links being changed to include i0.wp.com at the front’ is closed to new replies.