Ubuntu LAMP on 14.04 legacy redirect dynamic querystring to static file
I have a vanilla droplet Ubuntu LAMP on 14.04 serving up some static documents and html pages at mysite.com domain. I’d like to redirect one and only one old link mysite.com/?p=1055 to what is now a pdf document on the same domain mysite.com/resources/1055.pdf
I tried adding an htaccess file to www>html directory with the line
Redirect 301 /?p=1055 http://mysite.com/resources/1055.pdf but that didn’t work at all.
I should note that the old URL was from when the site was a wordpress site, but it isn’t any longer. The current domain doesn’t use querystrings.
If someone could point me in the right direction and please explain what I need to do…perhaps like i’m a child or a dog ;) It would be greatly appreciated.