A client wants to change their Wordpress theme and have created an addon domain to facilitate this. Their intention is to make the updates on the addon domain and then switch the old domain to the addon domain when ready. The client does not want any downtime so changing the theme on the live site is not an option.
I’ve copied the files across to the subdirectory where the addon domain has been created, copied the database and changed
wp-options to the addon domain url. My next step was going to be to change the guid to the new url so that attachments are handled correctly for the addon domain.
Because the new site is in an addon domain (and a subdirectory) I can’t simply update the DNS and point the existing domain to the addon domain. So when the site is switched I think I have 2 options:
Redirect the old url (which is the url that is used in publications etc) then I would need to add a rewrite rule in the htaccess file like this. This would mean I wouldn’t need to update all the attachments again.
Update the home directory of the existing site to point to the subdirectory of the addon domain. This seems like the simplest but will probably still require a rewrite.
Which option is preferable and what pitfalls have I not spotted?
NB: I find the concept of addon domains a bit weird and think it would be much simpler to put the updated site on a separate machine and just switch the DNS (if downtime is not an option)