You can leave your WordPress site where it is in /myfolder
and follow these steps to easily access the website by going to www.web.site
instead:
- In your Dashboard go to Settings > General
- In the Site Address (URL) remove the
myfolder
where you installed WordPress - Click Save Changes
it should look like the following example:
However, if you want to move your WordPress files to the root
instead of myfolder
. You’ll need to do the update the links your database after you move your WordPress files to the root
of your host. To do so, follow these steps:
- Go and download Interconnect IT’s Database Search & Replace Script here
- Unzip the file and drop the folder in your localhost where your WordPress is installed (the root) and rename the folder to
replace
(screenshot) - Navigate to the new folder you created in your browser (ex:
http://web.site/replace
) and you will see the search/replace tool - Enter your old URL in the
search for…
field and the new URL in thereplace with…
field
You can click the dry run button under actions to see what it will be replacing before you execute the script. Once you’re done be sure to remove the /replace/
folder.