You are reading a single comment by @danb and its replies. Click here to read the full conversation.
  • 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)

About

Avatar for danb @danb started