Not bad but i recommend using this one! ( works good )
that way rather then giving the person and error, it just redirects them back to the home page....Code:<Files admin.php> RewriteEngine On RewriteBase / RewriteCond %{REMOTE_HOST} !^120\.0\.0\.1 RewriteCond %{REMOTE_HOST} !^123\.45\.56\.789 RewriteCond %{REQUEST_URI} !/index\.php$ RewriteRule .* /index.php [R=302,L] </Files>
please "Like" if you use!
Yes.does it then ask you for that secondary password when trying to access ACP or the /install directory?
AuthName "ACP XenForo"
AuthType Basic
AuthUserFile /lamp0/web/vhosts/cocoriweb.community/htdocs/xyz/.htpasswd
AuthGroupFile /dev/null
<Files admin.php>
require valid-user
</Files>
Myname:mypassword
</Files>
<Files admin.ph>
or something similar in your .htaccess this end line may cause the error 500.There isBecause I don't see a<Files admin.ph>
or something similar in your .htaccess this end line may cause the error 500.
I did it hereAs for the .htpasswd you have to create your password with the htpasswd executable or via an online script, it's nust just that you can edit the .htpasswd and enter a password you like in there. It's encrypted.
Same error... Where i can check the server log ?If it still throws a 500 error then check the server error log.
We use essential cookies to make this site work, and optional cookies to enhance your experience.