0
votes
1answer
129 views

Help with regexp in <Files> tag of .htaccess

For poorly configured Apache servers you can have to do something like this to deny access to the .htaccess file: <Files .htaccess> order allow,deny deny from all </Files> I would like ...
2
votes
1answer
152 views

Regular expressions and .htaccess - need help with understanding

I understand .htaccess and mod_rewrite on a fairly basic level, and have just started learning ForceType and SetHandler directives. This is my .htaccess file for my domain, testsite1.localhost (only ...
0
votes
1answer
464 views

I am trying to write an htaccess file performs authentication and redirects authenticated users to authorized directories. Can anyone help me with the condition syntax?

This is what I have so far but I can't get the RewriteCond and RewriteRule properly. RewriteEngine On RewriteCond %{LA-U:REMOTE_USER} (\d{3})$ RewriteRule !^%1 http://subdomain.mydomain.com/%1 ...