I have read how to protect admin folder with .htaccess and .htpasswd file but in PyroCMS admin login (ex: example.com/admin) just only routing system (no admin folder yet).

So, how can I double protect my admin access?

  • I can't wrap my head around what you're trying to accomplish. Can you elaborate on your question?
    – user555
    Commented May 22, 2013 at 13:10

2 Answers 2


The reason your not seeing admin directory is because the URL's are generated using the SQL/CMS and physical paths do not actually exist. You can however make a folder called admin and then stick the htaccess file into to there and it should work without problems.


You can limit the access to the admin with the htaccess to your IP, however, if you have a dynamic IP you might lock yourself out.

To do this place a .htaccess in your admin folder and put the following lines in

order deny,allow
allow from (replace with your IP address)
deny from all

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.