Renaming a domain?

Is there a way to rename a domain? I’ve set up a test (sub) directory for a wordpress site for one of my clients and she’s happy with it. And because I’m lazy and don’t want to move it to the domain I was wondering if I could just rename the directory it’s sitting in now from the sub-domain to the actual domain it’s supposed to be?


If the main domain already exists, like, and you like, you can rename the main as example.old and then rename the sub to be

If the main domain doesn’t already exist, then create it as a Fully Hosted Domain, and then follow the above directions.