Title: Plugin is removing custom folder structure (uploads / plugins / wp-content)
Last modified: August 14, 2025

---

# Plugin is removing custom folder structure (uploads / plugins / wp-content)

 *  Resolved [jiripolacek](https://wordpress.org/support/users/jiripolacek/)
 * (@jiripolacek)
 * [10 months ago](https://wordpress.org/support/topic/plugin-is-removing-custom-folder-structure-uploads-plugins-wp-content/)
 * Hi,
 * your backup plugin is great but I cannot find how to export and import website
   with custom folder structure:
 * `**define( 'UPLOADS', 'media' );**
   **define( 'WP_PLUGIN_DIR', dirname(__FILE__).'/
   my-plugins' );****define( 'WP_PLUGIN_URL', 'https://' . $_SERVER['SERVER_NAME'].'/
   my-plugins' );****define( 'WP_CONTENT_DIR', dirname(__FILE__) . '/website' );****
   define( 'WP_CONTENT_URL', 'https://' . $_SERVER['SERVER_NAME'] . '/website' );**
 * After import:
    1. Folder “media” is changed to “wp-content/uploads”.
    2. Folder “my-plugins” is changed to “wp-content/plugins”.
    3. Folder “website” is changed to “wp-content”.
       Also these and all other customizations
       in wp-config.php are removed from wp-config.php.
 * So website is not running properly after import.
 * Custom folder structure is popular and recommended for better security and better
   language localization.
 * It is WordPress core functionality and other backup plugins I used are fully 
   compatible with it.
 * Please how to fix it?
 * Regards,
   Jiri Polacek
    -  This topic was modified 10 months ago by [jiripolacek](https://wordpress.org/support/users/jiripolacek/).
    -  This topic was modified 10 months ago by [jiripolacek](https://wordpress.org/support/users/jiripolacek/).

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

 *  Plugin Author [Yani](https://wordpress.org/support/users/yaniiliev/)
 * (@yaniiliev)
 * [10 months ago](https://wordpress.org/support/topic/plugin-is-removing-custom-folder-structure-uploads-plugins-wp-content/#post-18599182)
 * Hi Jiri,
 * I hope you are well.
 * Have you tried to apply these changes to your wp-config.php file before importing
   the file?
    The plugin should respect this configuration on import and extract
   the files in the appropriate locations. If you are importing to a blank WordPress
   website without this configuration, then the plugin will extract the files at
   their default location.
 * This allows you to migrate between sites with custom and default structure and
   the plugin respects the configuration on the site where you are importing, not
   the site you are exporting from.
 *  Thread Starter [jiripolacek](https://wordpress.org/support/users/jiripolacek/)
 * (@jiripolacek)
 * [10 months ago](https://wordpress.org/support/topic/plugin-is-removing-custom-folder-structure-uploads-plugins-wp-content/#post-18599237)
 * Hi,
 * I started to try it. But already a big problem.
 * Is there a way to move website from one webhosting provider to another webhosting
   provider via your plugin? (move entire website from one server to another server
   etc.)
 * Because if I understand it correctly, your plugin standard export/import behavior
   is dependent on WordPress (and your plugin) installation. So, on new server I
   have to install WordPress and your plugin. But I cannot use standard one-click
   installation because custom folder structure is not included. Also use default
   WordPress installation and change custom folders after it, that is really difficult
   and time-wasting. I don’t think it is worth doing it, it is better to use other
   plugin which can install entire website.
 * I like your plugin because export and import is really fast, compared to competitor
   plugins.
 * Please is there any user-friendly way to export and import entire website with
   custom structure via your plugin?
 * Because building a new WordPress website with custom structure to import old 
   website via your plugin, it is not user-friendly. I can use other plugins where
   I only export website and upload it to FTP and run installer.
 * Regards,
 * Jiri Polacek
 *  Plugin Author [Yani](https://wordpress.org/support/users/yaniiliev/)
 * (@yaniiliev)
 * [10 months ago](https://wordpress.org/support/topic/plugin-is-removing-custom-folder-structure-uploads-plugins-wp-content/#post-18599248)
 * Yes, in this case you may want to use another plugin if it’s more convenient 
   for you.
    Our plugin assumes the site is already set up and configured as you
   want before importing the file. It does not recreate the site’s structure, it
   works with whatever is already present.

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

The topic ‘Plugin is removing custom folder structure (uploads / plugins / wp-content)’
is closed to new replies.

 * ![](https://ps.w.org/all-in-one-wp-migration/assets/icon-256x256.png?rev=2458334)
 * [All-in-One WP Migration and Backup](https://wordpress.org/plugins/all-in-one-wp-migration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-wp-migration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-wp-migration/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-wp-migration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-wp-migration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-wp-migration/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Yani](https://wordpress.org/support/users/yaniiliev/)
 * Last activity: [10 months ago](https://wordpress.org/support/topic/plugin-is-removing-custom-folder-structure-uploads-plugins-wp-content/#post-18599248)
 * Status: resolved