Hi @eastlinetheatre,
As you mention, the pages themselves redirect to the attachments, for example, https://eastlinetheatre.org/archive/men-on-boats/ redirects to https://eastlinetheatre.org/wp-content/uploads/2020/08/men-on-boats-scaled.jpg, so it is indeed not an issue with the production-archive/ page, but a more general one.
It is possible that disabling the plugin Gallery Custom Links does fix the issue, but because your browser remembers the redirect from when you tried it with the plugin enabled, it appears as if the issue is still there.
So my recommendation would be to disable the plugin again, and try it with another browser you have installed (Firefox, Google Chrome, etc). If you don’t have another browser, you can also try it with with this site: https://www.proxysite.com (enter https://eastlinetheatre.org/archive/men-on-boats in the Enter URL field and click Go).
If it shows the actual page, disabling the plugin did fix the issue. If it shows the attachment, than the issue is indeed not related with that plugin, and lies elsewhere.
-
This reply was modified 3 years ago by
Paulo Pinto. Reason: Improve formatting
-
This reply was modified 3 years ago by
Paulo Pinto.
Thank you for your help! I deactivated and used Proxysite and the issues persists unfortunately.
Ok, so the redirect might be “stuck”. To verify this you could use a plugin that shows all currently-active redirects, like Redirection, or another from this list: https://wordpress.org/plugins/search/redirect/.
Once you installed the plugin, you should be able to check if there are any active redirects for the affected pages, and delete the unwanted redirects.
If that works, you can then delete the plugin you installed if you no longer need it.
-
This reply was modified 3 years ago by
Paulo Pinto. Reason: Mentioned plugin can be deleted if problem is solved
Okay, so I ran that and disabled Yoast SEO and it’s doing this for some reason:
Check redirect for: https://eastlinetheatre.org/archive/anna-in-the-tropics/
301
https://eastlinetheatre.org/archive/anna-in-the-tropics/
Redirected by WordPress. What does this mean?.
200
https://eastlinetheatre.org/archive/anna-in-the-tropics/anna-in-the-tropics/
How to do I stop WordPress forcing that redirect?
Interestingly, I previously was unable to reach the WordPress edit page for it (it also redirected to the media attachment page), now I can edit the original page but there’s no way to view it.
I noticed that the behaviour is now different, previously when trying to access (for example) https://eastlinetheatre.org/archive/men-on-boats/, it would redirect to the actual file (https://eastlinetheatre.org/wp-content/uploads/2020/08/men-on-boats-scaled.jpg), and now it redirects to the attachment page (https://eastlinetheatre.org/?attachment_id=3975).
Would it be possible for you to disable all plugins and see if the problem persists? Then you can enable plugins one by one to identify if the problem is being caused by a specific plugin.
Unfortunately even with all plugins disabled it’s still happening. Not sure what my next steps should be. I have noticed that some of the links lead to the attachment pages and some like https://eastlinetheatre.org/archive/the-vibrator-play/ lead to 404 pages
The error ones I can access the edit pages for them, the ones that redirect to images attachments I cannot.