How to efficiently permanently redirect 150.000 images?
Posted
by
Fabio Spampinato
on Server Fault
See other posts from Server Fault
or by Fabio Spampinato
Published on 2013-10-28T14:59:06Z
Indexed on
2013/10/28
15:57 UTC
Read the original article
Hit count: 495
For SEO purposes I need to rename around 150.000 images, then I'd like to permanently redirect the previous url locations requests to the new locations.
The current url to every image is something like:
website.com/something/unique_id/filename.jpg
And I want to redirect them to:
website.com/something/unique_id/new_filename.jpg
I can only think about 2 options:
1) Create an enormous list of redirects to include into my nginx's conf file.
2) Redirect those requests to something like "website.com/new_location/unique_id" that will redirect the request again to the new path.
There are other, better, options?
Should I avoid multiple 301 redirects?
Will crawlers downgrade my rankings because of multiple redirects?
© Server Fault or respective owner