httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clodoaldo Pinto Neto" <>
Subject [users@httpd] RewriteMap and RewriteRule
Date Sat, 06 Dec 2008 02:05:33 GMT
I'm using this config in Apache 2.2.3/Centos 5:

RewriteMap redirect txt:/var/www/html/example/redirect.txt

RewriteRule ^/(a|b|c|d|e)$${redirect:$1} [NC,R=permanent,L]

a x
b y
c z
d k
e j

Since the redirected pages are many i would like to not have to put
them all in RewriteRule ^(a|b|c|d|e)$ using in instead the
redirect.txt map to populate that rewrite rule. Is it possible? If not
what else can be done?

Regards, Clodoaldo

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

View raw message