Restricting wp-login.php access on a multisite instance

[ad_1]

I have a WordPress multisite install on WPEngine with a bunch of sites. I need to restrict access to the wp-login.php file for just one of them. I’ve been trying to do it in .htaccess with no success. I can modify the .htaccess file at the root, but specifying the “folder name” of the site doesn’t work.

For example I have [domain.com](https://domain.com) which I can FTP to but I cannot FTP into the main directory of any of the sub sites to add an .htaccess file there. Also when I try to target just the sub site using something like /subfolder/wp-login.php in the main .htaccess file it does not work.

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer