To return a subdirectory WordPress to the root directory, perform the following steps.
- First, find the following line in index.php and modify it as follows
require( dirname( __FILE__ ) . '/wp/wp-blog-header.php' );
to require( dirname( __FILE__ ) . '/wp-blog-header.php' );
. - Then, using a search and replace tool (e.g., “Search Replace DB”), change the site URL to
localhost:8000/wp > localhost:8000