On Sun, Mar 24, 2024 at 2:31 AM Dave Wreski <dwreski@xxxxxxxxxxxxxxxxxxx.invalid> wrote: > > I'd like to be able to use the static map for the IDs I do know, and send any others to the redirect script directly from within my apache config directly. Is this possible? > > Something like this: > > RewriteEngine on > RewriteMap lsv2ids "txt:/etc/httpd/conf.d/linuxsecurity-lsv2ids.map" > RewriteRule "/content/view/([0-9]{6})/?" "${lsv2ids:$1}" [L] > > RewriteRule "/content/view/([0-9]{6})/?" "https://linuxsecurity.com/redirection/index.php?type=view&ids=$1&uri=$1" Possibly using the "DefaultValue" (i.e. not found) as described in [1]: RewriteRule "/content/view/([0-9]{6})/?" "${lsv2ids:$1|https://linuxsecurity.com/redirection/index.php?type=view&ids=$1&uri=$1}" [L] [1] https://httpd.apache.org/docs/2.4/rewrite/rewritemap.html Regards; Yann. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx