• Hi,
    recently we have made our WordPress site available to external users using Azure proxy.
    Images on our site are not displaying and upon inspection we can see that the SRC attribute is correct and pointing to the new external address.
    However, the SRCSET attribute still has the internal address.

    Is there a way to ensure the SRCSET is pointing to the external address?

    This would be a great help.

    Thanks

    • This topic was modified 4 years, 4 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Try using the plugin “better search replace”. Search for olddomain.com and replace with newdomain.com.

    Thread Starter aralmac123

    (@aralmac123)

    Hi @sterndata ,

    Thanks for the reply.

    So we have a different address for internal and external.
    We would only want the srcset to change when it is accessed through the external address.

    Would using that plugin not change the internal address also?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Well, if the srcset string is stored in the database, yes. If it’s done on the fly, no. I’m not sure if the function is called when inserting an image or when the image is referenced. I’m pretty sure its the former, which means that the entire src is stored in the database as a string.

    Thread Starter aralmac123

    (@aralmac123)

    @sterndata I believe srcsets are assigned on the fly or “generated by wordpress” as i’ve read.

    Would this just take the internal address then that is possibly stored in the database?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I suggest you read the code for the srcset functions.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘SrcSet link still pointing to internal address’ is closed to new replies.