httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
Subject RE: Syntax for <FilesMatch> directive
Date Thu, 13 Dec 2001 18:20:05 GMT

> From: Jean-Gabriel Duquesnoy []

> <FilesMatch "(add|amend|del)*.php $">

Here's my educated guess:

"*" in a regular expression does not mean the same as "*" in the shell.  It
means "match zero or more of the immediately preceeding character/group.  So
your regex matches ".php" "add.php" "addaddaddadd.php" but not "addfoo.php".
The other problem could be the space between php and $.

What you probably want is
<FilesMatch "(add|amend|del).*\.php$">

The "." matches any character, so ".*" matches zero or more of any character
(ie anything).  The "\." matches a literal dot.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message