I'm encountering a problem with my .htaccess file and with my limited knowledge of PHP I cant seem to figure this one out.
Goal: I want to redirect traffic that goes to my main page but has a query string, to be redirected to a different page with the query string intact. Like so:
https://www.mywebpage.com/?wd8RL4T6Q00&17.07&52LJqY-emLU&0
to
https://www.mywebpage.com/player.html?wd8RL4T6Q00&17.07&52LJqY-emLU&0
The user can only see the first and underlying pages like (https://www.mywebpage.com/howto.html) still have to be reachable.
In pseudo code (but somewhat resembling javascript ;) my solution would be something like:
if (querystring) {
redirect to './player.html' + querystring
}
What I have tryd:
RewriteEngine On
RewriteCond %{QUERY_STRING} (.*)
RewriteRule player.html %1
But this seemed to redirect all traffic somehow.. Thanks for your help in advance!