Moving WordPress installation to directory used for add-on domain
-
My parents had a website which they set up on myparentssite.com. I created a new WordPress site for them, in a a subdirectory of my own site, myownsite.com/myparentssite/. Now that I have finished, I have changed the DNS settings for my parents’ site in order to add it as an add-on domain to my own hosting contract, so that myparentssite.com now points to myownsite.com/myparentssite.com/.
I have found a number of instructions describing how to move a site, including moving it to another directory of the same server. but I am unsure about the process if the target directory belongs to an add-on domain, so that the URL is a different one to the path on the server, i.e. the path is myownsite.com/myparentssite/, but obviously the browser will just display myparentssite.com in the address bar.
My concern is that I do something wrong which will cause me to lock myself out of WordPress. In particular, I am not sure what addresses I need to enter under
'Settings > General Settings'
in the Dashboard – for'WordPress Address (URL)'
and'Site Address (URL)'
.Can someone please help me out and let me know what the safest way is to change the directory? Do I need to export and import the database at all, or would it be enough just to edit the settings in the Dashboard?
- The topic ‘Moving WordPress installation to directory used for add-on domain’ is closed to new replies.