Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
I can't wrap my head around what you're trying to accomplish. Can you elaborate on your question? – user555 May 22 '13 at 13:10
up vote 0 down vote accepted

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.

share|improve this answer

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
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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