Question on 301 redirect
Maxim Dounin
mdounin at mdounin.ru
Fri Aug 5 06:37:50 UTC 2011
Hello!
On Thu, Aug 04, 2011 at 11:52:06PM -0400, zflairz wrote:
> Is there any way I can 301 redirect a lot of (>10k) old urls to new urls
> in nginx conf?
> Writing 10k lines of rewrite rules seems to be not efficient as those
> rules will get checked for every single request.
> I'm thinking of some data structure like dict in python which can have a
> quick look up of the key and then do the redirect of the value. The
> question is how can I do that in nginx?
http://wiki.nginx.org/HttpMapModule
Maxim Dounin
More information about the nginx
mailing list