• I have two sites, one running WP 4.3 and another 4.5, with different themes and plugins, all of the sudden the permalinks for all my old images are redirecting to a 404 Page. If I upload a new image and click in the Media section to view the attachment page for the image it works.

    I have tried disabling all plugins, changing themes, deleting the .htaccess and regenerating a new one, and reinstalling WordPress and a copy of the site on a different server. I have verified that the actual image files are in their proper folders.

    The web sites in question are: https://tls2.thelivingsea.com and https://www.walkersdivecharters.com

    On TheLivingSea.com if you do a search for “Palm Beach” you can see one of the top image shows, but all the others display a 404.

    On WalkersDiveCharters.com if you go into the Captains Dive Blog and click on the first blog entry and then click on the carousel of images at the bottom of the page they are not showing the larger image when you click on the thumbnails.

    Neither web site had anything changed when this problem began.

    Any ideas what would cause this and if there is a fix? Any help is greatly appreciated as I seem to have tried everything I can think of or read online to do. Your help is much appreciated.

Viewing 1 replies (of 1 total)
  • Thread Starter Laz R

    (@laz-r)

    I had to restore walkersdivecharters.com to a working backup. Out of curiosity, I imported the database that was in use with the non-working site and the images started to work. I hadn’t modified any child pages when the problem began.

    tls2.thelivingsea.com is still having the issue. One note – If I reset my permalinks to the PLAIN setting (tls2.thelivingsea.com/attachment_id=99583) then they work. If I set it to POST NAME or CUSTOM (/%post_id%/%postname%/) then they stop working. This is only with old images. Anything I upload new to the site works with all permalinks.

    I have reset my permalinks (removed .htaccess, flushed via SAVE CHANGES in Settings > Permalinks), disabled all plugins (except VC), reinstalled a copy of the site on a different server, compared the data in the wp_posts table between a new and old image (I don’t see a difference), removed my modified singles.php page in the child theme—nothing seems to work. All images have been verified to be in their proper folders on the server and the URL inside the Media Library page is showing correctly.

    Any help would be GREATLY appreciated as I have exhausted my options.

Viewing 1 replies (of 1 total)
  • The topic ‘Old permalinks no longer working’ is closed to new replies.