Sometimes when using an auto-installer or an inexperienced contractor, you will end up with a WordPress install at https://domain.com/wp
(or similar) instead of domain.com
. To fix this you need to move your site from a subdirectory to the web-root or root of your domain.
To move WordPress files from a subdirectory to the root (web-root), you need to follow these steps:
- Backup your WordPress site files and database.
- Log in to your WordPress dashboard and go to Settings > General.
- Change the WordPress Address (URL) and Site Address (URL) or Website URL fields from the subdirectory URL to the root URL. For example, if your site is currently at
https://domain.com/wp
, change it tohttps://domain.com
. - Save the changes and log out of your WordPress dashboard.
- Using an FTP client or a file manager, move all of the WordPress files from the subdirectory to the root directory. Make sure you don’t overwrite any existing files in the root directory.
- Log in to your WordPress dashboard again and check if everything is working properly.