i have the following problem:
i am using an external RewriteMap
- Code: Select all
RewriteCond %{REQUEST_URI} .html$
RewriteMap rewrite-static prg:/usr/local/bin/rewrite_static
RewriteRule ^/(.*).html$ /${rewrite-static:$1}
to transform static urls into dynamic ones for php.
I am using vhosts (about 500) and would like to use this rewriting in every vhost.
When I put the above lines in all of my vhost files, apache opens the file /usr/local/bin/rewrite_static once for every vhost and runs out of memory.
When I put the above lines to my httpd.conf, the rule does not work at all.
Why? do I have to put it in a special section (tried IfModule)?
Or is there any other way to transform the url
- Code: Select all
/index,lang,en,id,8.html
- Code: Select all
/index.php?lang=en&id=8
any help or ideas appreciated!!
sqm