Fullmental
Active member
I have a weird issue going on. When I backfill my production site to a dev environment, attachment links that contain a full URL to a media item break. For example, if my site is forum.com and I have an attachment /media/funny-gif.57 that gets attached to a post via the URL options from the media page, it works on the live site with the IMG source URL as
OK, no problem. I went into the image proxy settings in ACP and added my primary domain to the bypass list. All should be good, right? Wrong, the proxy process doesn't seem to acknowledge and bypass these types of routed URLs, it seems to only work when the link is a direct image URL, not a URL that is an attachment route.
Short of running a SQL script to replace every instance of my live site URL in all messages with an equivalent localhost path, how else can I get Xenforo to stop trying to proxy attachments from my own site when backfilling to a dev instance? I do not want to disable image proxying completely because that would defeat the purpose of testing on a dev site - it should match the live site as closely as possible and that includes proxying behavior, especially if I'm making changes to how the proxy works or testing bypass patterns or any other options. That said if things are breaking in unexpected ways before I do anything, how am I to know if a change I made caused something else to break or not?
[img]https://forum.com/media/funny-gif.57/full[/img]
. But when I have my dev site running on a localhost environment, Xenforo tries to proxy this image URL by attempting to fetch it from forum.com, even though it exists and is accessible on localhost through its own canonical URL structure, simply because the live site's domain was used in the embed by an end user.OK, no problem. I went into the image proxy settings in ACP and added my primary domain to the bypass list. All should be good, right? Wrong, the proxy process doesn't seem to acknowledge and bypass these types of routed URLs, it seems to only work when the link is a direct image URL, not a URL that is an attachment route.
Short of running a SQL script to replace every instance of my live site URL in all messages with an equivalent localhost path, how else can I get Xenforo to stop trying to proxy attachments from my own site when backfilling to a dev instance? I do not want to disable image proxying completely because that would defeat the purpose of testing on a dev site - it should match the live site as closely as possible and that includes proxying behavior, especially if I'm making changes to how the proxy works or testing bypass patterns or any other options. That said if things are breaking in unexpected ways before I do anything, how am I to know if a change I made caused something else to break or not?