Forum Moderators: phranque
In my case, it bombs as soon as it encounters a parenthesis, e.g.
[Sun May 16 23:51:08 2004] [error] [client] Invalid expression "$DOCUMENT_NAME = /(fo¦sdsdf¦sdfsdf)/" in file /var/spool/htdocs/test/********xx
or like ([0-9]{4})([a-z]{1})([0-9]{2})$/
The file is a .shtml file and other SSI directives get parsed fine.
Basically I'm trying to create a navigation/location bar (much like the one on this site saying "Home / Forums Index / The Webmaster World / Apache Web Server / xxx" ) using SSI.
So I need to parse the URI into variables, before I can do that, and as I said, as soon as Apache encounters a parenthesis in the SSI regexp, it gives an error. Nothing works, not wildcard (.*) etc constructs etc.
On the other hand, using parenthesis in regexps in other the httpd.conf file, in the RewriteCondition directives, work fine.
According to the manual ( [httpd.apache.org...] ) I don't need anything else besides mod_include, do I?
At least that's my explanation of the problem, as the suggested syntax of
Example
<!--#if expr="$QUERY_STRING = /^sid=([a-zA-Z0-9]+)/" -->
<!--#set var="session" value="$1" -->
<!--#endif -->
from [httpd.apache.org...]
gives an error on my setup :-((((
Consider using different technique for including a header/footer, check out this thread, it might give you a good start:
[webmasterworld.com...]