mod_rewrite - can anyone suggest a way that I can perform mass redirects (I am talking many tens possibly hundreds of thousands) of redirects?
My thought was to use the RewriteMap DBM file - as at least this would be indexed
However I also need to be able to map full urls - and getting rewrite to do this without looping is doing my head.
a single made up example (with similar link syntax):
but how to get it to match the whole url (http://abc.bongo.com/content/11.444.44 rather than just content/11.444.44) part (there are MANY different domains and subdomains)
Apache gurus (i am not)
mod_rewrite - can anyone suggest a way that I can perform mass redirects (I am talking many tens possibly hundreds of thousands) of redirects?
My thought was to use the RewriteMap DBM file - as at least this would be indexed
However I also need to be able to map full urls - and getting rewrite to do this without looping is doing my head.
a single made up example (with similar link syntax):
http://abc.bongo.com/content/11.444.44 should be 301 redirected to http://alpha.blarg.org/resource/nfg/magazine/p157_s1
The two bear no resemblence to each other or follow any suitable pattern - hence using a map rather than any kind of regex...
I was thinking something along the lines of:
RewriteMap redirmap dbm:common/production/redirmap.map
RewriteRule ^(.*)$ ${redirmap:$1} [R=301,L]
but how to get it to match the whole url (http://abc.bongo.com/content/11.444.44 rather than just content/11.444.44) part (there are MANY different domains and subdomains)