• Michaël Baillot

    (@schemastudio)


    Hello,

    I migrate a website to a new one. I need to export / import posts from the old site to the new one. To export posts, I use the native WordPress functionnality (XML file).

    To import posts on the new webiste, I use the WordPress Importer by wordpressdotorg. At the start of the import process, I select the two options: Import Attachments and Content Options.

    Import goes well but links to images are broken in the new site. For example with the sema post on each site:

    Old site: https://www.stbruno-evian.com/sortie-des-4e-opale-et-saphir-les-larmes-du-glacier/

    New site: https://staging.stbruno-evian.com/2025/11/20/sortie-des-4e-opale-et-saphir-les-larmes-du-glacier/

    The URLs of the image is the same on each web site: /wp-content/uploads/2025/11/IMG_0035-1024×768.jpeg

    What I notice is that – on the FTP – image files do not have the same name.

    On the new website, the text “scaled-1” is added to the file name.

    I’ve followed steps in the article (adding code to function file and plugin) but result is the same.

    What is weird is that when I manualy add an image to the WP Media folder, the text “scaled-1” do not appear. FTP files.

    Also, when importing posts, an error is showing. This is because I do not use the Folder plugin on the new website (I’ve also tested to activate it and re-import but result os the same).

    Best regards,

    Michaël

Viewing 2 replies - 1 through 2 (of 2 total)
  • hi @schemastudio,

    the problem you are facing, is regarded to WordPress Permalink Structures. To get back to your previous URL structure you need to go to settings and then permalink on you admin dashboard, and you can customize the permalink structure based on your needs.

    to know more about permalink structure you can see the customize permalinks and permalink screen guides.

    Thread Starter Michaël Baillot

    (@schemastudio)

    hi @mrbla4ck,

    thank-you for your anwser. I’ve set up the new web site permalinks like the ones of the old site.

    I’ve repeated the import but nothing change. Thanks for your help!

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.