I have a current site that I'm keeping up though it's deprecated and all content moved to another site. Because it's been a year, I want to start redirecting people from the old site to the new, and I can do that grossly with a simple redirect. However, I've got individual articles that I'd like to redirect to the article on the new site.
The old schema was something like:
https://mydomain/viewstory.php?sid=20449
That was imported to the new site as:
https://mynewdomain/works/12345
The data is in my MySQL database with old and new URL, and I'd like to put together a giant .htaccess file with all the redirects. But currently the code I have input does NOT work. That code I'm using is:
Redirect 301 /viewstory.php?sid=20449 https://mynewdomain/works/12345
Is there any way to do this?