Support

Admin Tools

#21068 Administrator Folder Protection - Siteground

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Tuesday, 30 September 2014 07:12 CDT

sandstorm871
I wanted to refer back to this ticket which is now closed - https://www.akeebabackup.com/support/admin-tools/20773-after-adding-pw-protect-i-get-redirected-to-the-front-of-the-site-with-a-404.html

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

nicholas
Akeeba Staff
Manager
My solution was to remove the .htaccess and .htpasswd files from the administrator directory, then try the password protection again. However, it's much safer to simply add a directory password protection from the cPanel itself.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!