How do I move WordPress from a subfolder to my domain's main address?

How do I move WordPress from a subfolder to my domain's main address?

Before moving anything, save a copy of your files and database, and check whether the main directory already contains a website you could overwrite. Record the current URLs and decide whether you want to move the entire installation or simply display the site at the main address: these require different approaches.

For a complete move, follow the WordPress relocation documentation, update the site URLs and check the permalink rules. If you replace URLs in the database, use a tool that handles serialised data rather than a simple replacement in an SQL file. Test login, images, forms and internal pages, then configure redirects from the old URLs to the new ones.

RELATED QUESTIONS

Here are a few more questions whose answers may interest you. We answer important, practical questions for our customers.

SUBSCRIBE TO OUR NEWSLETTER

Join our newsletter. We only use it to share important information.

Newsletter subscription illustration