If you are password protecting your administration directory, that is where both .htaccess and .htpasswd should be placed.
Normal cPanel® paths:
htaccess:
Code: Select all
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /home/username/public_html/ifAddOnDomain/administrator/.htpasswd
AuthGroupFile /dev/null
require valid-user
htpasswd:
Use this link:
http://winfoes.co.uk/how-to-joomla/joom ... el-backend
You will find additional joomla admin security ideas and htpasswd generators.
If you are using cPanel, the Admins for your host may have disabled direct directory protection through htaccess, however through your cPanel you can password protect your admin directory with the Security/'Password Protect Directories' feature.
You may see the above code for htaccess as:
Code: Select all
# DO NOT REMOVE THIS LINE AND THE LINES BELOW PWPROTECTID:SrTNvQ
AuthType Basic
AuthName "Restricted Access"
AuthUserFile /home/username/public_html/ifAddOnDomain/administrator/.htpasswd
Require user username
# DO NOT REMOVE THIS LINE AND THE LINES ABOVE SrTNvQ:PWPROTECTID
Also of note to all those who have never used cPanel®.
CPanel or Cpanel are not the same as cPanel®.
These are different licensed hosting solutions and should not be confused with each other.
See:
http://cybercapital.co.uk/website-hosti ... el-hosting
for further info and definition!