Scenerio:
Website was originally developed using ASP. The site has been redesigned and is using PHP/Drual now. I want to redirect old links to their new locations.
Many of these links come from a single dynamic page, as in:
/discussion2.asp?T=102
/discussion2.asp?T=108
/discussion2.asp?T=114
I need to map each of these to their new location. Unfortunately, the new locations look nothing like the original. For example:
/discussion2.asp?T=102
needs to go to:
/content/some-page-about-foo
/discussion2.asp?T=108
needs to go to:
/content/everything-bar
In other words, I think I need to manually map these pages 1-to-1. I don't have much mod rewrite experience, and would appreciates any tips. I think I need to do something like this:
rewriteCond %{REQUEST_URI} ^.*discussion2\.asp$
rewriteCond %{QUERY_STRING} ^T=102$
rewriteRule ^.*$ /content/some-page-about-foo [R=301,L]
rewriteCond %{REQUEST_URI} ^.*discussion2\.asp$
rewriteCond %{QUERY_STRING} ^T=108$
rewriteRule ^.*$ /content/everything-bar [R=301,L]
Does that look correct?