I was struggling to protect the administrator folder using Admin Tools pro & Nic had mentioned that he had seen this before & suggested using the cPanel admin protect from Siteground?
I have set up a few new sites all on a VPS in Siteground and when I use Admin Tools to protect the admin folder I am immediately redirect to a 404 page
So as suggested I used cPanel password protect & I found I was getting the exact same problem?
I opened a support ticket with Siteground and they suggested that I add the following within my .htaccess file in the admin folder.
ErrorDocument 401 "Authorisation Required"
Adding this into the .htaccess file in my administrator folder, the cPanel password protect then works.
I switched off the cpanel password protect & then tried the Akeeba admin tools way of protecting the admin folder again, but I got the same 404 page again.
But after adding this extra line in the .htaccess file in administrator folder that had been created by Akeeba Admin Tools, the protection works again
ErrorDocument 401 "Authorisation Required"
So. I just wanted to know what you think of adding this extra line?
Also I now have about 20 sites working on my Siteground cloud VPS & its seems 50/50 wether the admin protection works 1st time. In some sites I can set admin tools admin protection up straight away and it works, but others I get this 404 issue, where it seems I am going to have to add this extra line in the .htaccess file.
Thanks in advance
Andy