When building a new WordPress setup, the first step I take to organize and add an extra level of security (by obscurity) is to move the admin into a sub directory.
First create folder where you want to install WordPress. In this tutorial, we will use /mywebsite.
Now, at WordPress dashboard, navigate to Settings >> General Settings.
n the box WordPress address (URL),change the address to new location of your main WordPress core files. For example: http://example.com/mywebsite.
In the box Site address (URL), change the address to the root directory URL. For example: http://example.com and click on Save Changes.
Move your WordPress core files to the new location (/mywebsite folder).
Now COPY (DO NOT MOVE) index.php and .htaccess files from /mywebsite folder to root directory, i.e. wwwroot/public_html.
By default, .htaccess file would be invisible. Hence, set FTP client to show hidden files. If you are using cPanel file manager, check the show hidden files checkbox while you access file manager. Additionally, if you do not use pretty permalinks, then you may not have a .htaccess file.
Now, open root directory’s index.php file in a text editor. Replace line
require( dirname( __FILE__ ) . ‘/wp-blog-header.php’ ); with following line, placing your subdirectory name as follows.
Browse and login to new WordPress dashboard. http://example.com/mywebsite/wp-admin/
If you have set up Permalinks, update the Permalink structure. At WordPress dashboard, navigate to Settings >> Permalinks Settings, check the checkbox of permalinks setting you set previously and save the changes.