.htaccess tutorial

htaccess Elite


How to use FilesMatch in .htaccess with regular expressions?

Security in htaccess: htpasswd, 401 Authentication

How to use FilesMatch in .htaccess with regular expressions?

Postby lisali » 25 Jun 2008 15:58

Hello,

I have been trying to protect a virtual file/directory using .htaccess for a while now, but I'm getting nowhere.

What I am trying to do is protect the ADMIN area of a site that is dynamically created using rewrites.

So, there is no physical admin directory. One can access admin using:

index.php/admin
or just plain
admin/

Is there a way to password-protect anything with "admin" in it using FilesMatch within a .htaccess file, and how would one do that?

Many thanks!
Lisa
lisali
 
Posts: 1
Joined: 25 Jun 2008 15:54

Return to Security and Authentication