How do I redirect an .aspx url to a php page?
I have links from my old site being domain.com/song.aspx?SongID=1 which I’d like to redirect to a domain.com/song.php?SongID=2 file. Can you someone tell me how to do this?
I’m open to either using htaccess or a plugin. If I use a plugin, I need to be able to have the song.php also get the querystring after song.aspx.
How do I redirect an .aspx url to a php page? I have links
Share
Htaccess is probably the best way to go. This rule is pretty general, but should do the trick.
QSA stands for “Query String Append” and will append the query string from the old URL to the new URL.