Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
757 views
in Q2A Core by
is it possible to add an extra .htaccess protection for the "/admin" area?

3 Answers

0 votes
by
You can use .htpasswd to request another login and password but I suspect that's more annoying than secure.
0 votes
by
From my understanding this is not possible, as /admin/ is no folder but a request that is handled by q2a itself.
by
Actually the request does go through Apache first so it's possible to block it based on IP address or whatever.
by
Ah true, first htaccess which routes to q2a's index.php...
0 votes
by

I am not sure but I had similar problem with my other site and I endup with below hack.

Same as /admin/ I wanted to redirect all pages under /some-category/ so I have created the folder on the same level from the root. And place .htaccess with 301 code and things are done nicely :)

So you can try by creating admin directory to your q2a and place .htaccess into that directory with whatever rule you want in it.

But I just wonder what and how you want to control admin section? by IP or what?

Pleset let us know if this hack works.. 

Note: Q2A never keep URL admin/ but it always add the page right after admin..  /admin/general etc..

...