The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Broken permalinks after moving wordpress website from subfolder to root (5 posts)

  1. genesis
    Posted 2 years ago #

    I moved our website from a subfolder to the main folder of our server following the directions here for When Your Domain Name or URLs Change: http://codex.wordpress.org/Moving_WordPress

    Now when I visit the URL I moved the site to, the new website comes up, as do pages, but many image files are missing.

    I did make changes to permalinks to reflect the new URL and executed a search and replace, which now says there are 0 entries found with the old URLs.

    Any ideas? I'm still fairly new at this WordPress thing, so I'm worried I may have misunderstood something and screwed it all up!


  2. arncus
    Posted 2 years ago #

    Hello Genesis,

    Sorry to hear you're having problems with the images. When you state that you're having problems with the image files missing, are you able to take the link for the image file and verify the file is there and appears? You can check on this by right-clicking on the broken image icon and looking at the URL. Copy that URL into a browser by itself and see if the image resolves. Make sure that the file is located where that link indicates. If you don't see them, then the files are not located in the right place, or the link is incorrect. If these links are correct and you're seeing an image appear, then there's something else affecting the image and keeping it from appearing. Check the error logs to see if you can shed further light on this issue. Make sure that when you're searching for the link, that you're using the exact case. Differences in the case can often mislead you to be looking for the wrong file.

    If you continue to have the problem, then provide a little information on the issue such as a URL or error messages/logs.

  3. KimBlake
    Posted 2 years ago #

    Check the File URL path of your images under Settings>Media. You might need to change the path of the images as they maybe still pointing to the subfolder. Perhaps this plugin might make it easier Search and Replace/

  4. arncus
    Posted 2 years ago #

    I was reviewing your post and you mentioned that you:

    I did make changes to permalinks to reflect the new URL and executed a search and replace, which now says there are 0 entries found with the old URLs.

    Typically, the best way to reset permalinks is to set them to DEFAULT, saving so that they go back to the unfriendly links. Then resetting them to the permalink format that you had previously.

    It's possible that your image links need to be reviewed after you replaced them with the search and replace.

  5. estevaoavillez
    Posted 2 years ago #

    Usually when this happens I recommend that you check three things (maybe you've already checked them):

    - Check for any .htaccess file on the /wp-includes and /wp-includes/images folders
    - Check files and folders permissions (if they are set correctly)
    - Go to your permalinks and try just to save the actual configuration
    - Try to replace the WordPress core files

    Also, you can check the integrity of your files to see if there is some malware involved on this case, check here: http://blog.sucuri.net/2013/10/cleaning-up-your-wordpress-site-with-the-free-sucuri-plugin.html

Topic Closed

This topic has been closed to new replies.

About this Topic