Well - I managed to get it working - 800k rows produces ~150mb dbm file which Apache seems to cope with ok
RewriteMap redirmap dbm:redirmap.map RewriteMap lowercase int:tolower RewriteCond ${lowercase:%{REQUEST_URI}|NONE} ^(.+)$ RewriteCond ${redirmap:%1} >"" RewriteRule ^(.*) ${redirmap:%1} [R=301,L]
Is what I used, in case anyone is interested :) (didn't need to match on hostname after all as the paths were all unique thankfully)
@danb started
London Fixed Gear and Single-Speed is a community of predominantly fixed gear and single-speed cyclists in and around London, UK.
This site is supported almost exclusively by donations. Please consider donating a small amount regularly.
Well - I managed to get it working - 800k rows produces ~150mb dbm file which Apache seems to cope with ok
RewriteMap redirmap dbm:redirmap.map
RewriteMap lowercase int:tolower
RewriteCond ${lowercase:%{REQUEST_URI}|NONE} ^(.+)$
RewriteCond ${redirmap:%1} >""
RewriteRule ^(.*) ${redirmap:%1} [R=301,L]
Is what I used, in case anyone is interested :) (didn't need to match on hostname after all as the paths were all unique thankfully)