Would it be possible to also do a search/replace of old/new paths in both the wp-config.php and .htaccess files ?
Because currently I have the following issues:
1) I have following lines in my wp-config.php file:
define( ‘WP_CONTENT_DIR’, ‘/var/www/myblogs/blog1/assets’ );
define( ‘WP_CONTENT_URL’, ‘http://mydomain.com/myblogs/blog1/assets’ );
If I use duplicator to clone this site to /myblogs/blog2, the wp-config.php still points to the old paths of blog1 (see above)
2) I use some plugins that add data to the .htaccess file (e.g. Better WP Security)
But when I clone a site with duplicator, the .htaccess file gets renamed and a new, clean one is created with only the default WP rules in it.
This means that I have to redo all configuration in those plugins after each clone, because their settings are removed from the .htaccess file (and the backup version of that file still contains the old paths)
- The topic ‘wp-config and .htaccess files not (correctly) updated’ is closed to new replies.