Using A Different Directory Url And Site Url
Posted 17 August 2012 - 11:09 PM
I have a question before I purchase the backup buddy plugin. On some of the sites I manage, the site URL is different from the directory URL. This is often done to increase security and is described in the WordPress codex here (http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory). I read on another forum that the backup buddy plugin migrate and restore functionality doesn't work when the site URL is different from the directory URL. Can you confirm whether this is true or not? The plugin will be useless to me if this is the case. Thank you.
Posted 18 August 2012 - 06:34 AM
Thanks for your enquiry.
BackupBuddy does support backup/restore/migrate for a site with the urls defined in the manner you mention. In fact you can migrate both to and from this type of arrangement, e.g. from http://domain.com to http://newdomain.com and http://newdomain.com/wp and back again if required - you might do this if you have a dev site and just use http://domain.com but want the live site to be the split-url as you mention.
One caveat - currently the _first_ time you migrate to a split-url you would need to manually do the step of copying the index.php and .htaccess from the installation directory up one level and update the index.php to reference the subdirectory. However on any subsequent migration (e.g., subsequent update of the live site from a dev site) this would not be required as the files would already be in place and would not require any modification (assuming migration to the same installation subdirectory). Similarly, if restoring from a backup taken on your split-url site no specific action is required with regard to those files _unless_ those files also happen to have been deleted or otherwise compromised in which case you would have to replace them as above.
We do intend to look at incorporating these steps into the automated aspects of the migration but currently the manual steps are quick and easy and this is a minor component of the overall migration process that is only required in some cases as described above.
As usual after any migration it is always advisable to log in to the admin and save the Permalink definition so as to update the .htaccess and the WordPress internal routing tables.
I hope this provides the information you need but if you have any additional question please let us know, thanks.
"Everything will be all right in the end. If it isn't all right yet then it isn't the end."