I have about 30.000 old urls that need to be redirected
I am using excel to obtain a rewrite rule for each URL
My old URLS are using a Unique Identifier in the query string part
Basically I am trying to redirect
www.mysite.com/dettagli.asp?ID_S={965c1471-b985-45c1-9d7a-9fcede5711ed}
to
www.mysite.com/mynewurl.html
I can map any UID to the new URLS in excel but rewrite rules so far haven’t been successful
I have tried escaping the cury brackets with “” in front of them, no luck
So far I have tried
redirect 301 /dettagli.asp?ID_S={965c1471-b985-45c1-9d7a-9fcede5711ed}
and
redirect 301 /dettagli.asp?ID_S={965c1471-b985-45c1-9d7a-9fcede5711ed}
2
Answers
actually it was not that easy, at least not for me.
I think I found a solution using:
and so on....
but 30.000 Urls generate 60.000 Rows in htacces which weighs more than 5MB....
I think I 'll reconsider it
Try to implement all redirect rules in php. The only thing you need set up in .htaccess in entry point for php.