handling many redirects

Manlio Perillo manlio_perillo at libero.it
Sun Jan 6 23:00:47 MSK 2008


Hi.

I need to migrate a site to a new URL scheme.
Each page have a different url, and I want the old url to be still 
accessible, but redirected (with a 301 HTTP status code) to the new url.


With the rewrite module I can write (at server context):

rewrite  /old_url1  /new_url1/  permanent;
rewrite  /old_url2  /new_url2/  permanent;
...


The site does not have many pages, but is this efficient?



Thanks  Manlio Perillo





More information about the nginx mailing list