On my current website I use parameters in querystrings to select the content shown to the user (e.g. http://www.domain.tld/index.php?site=linklist&page=2). I want to switch to wordpress and have all old links redirected to the new permalinks of wordpress.
When having site=linklist in the query string the user should be redirected to http://www.domain.tld/my-new-linklist . If the querystring contains site=about the user should be redirected to http://www.domain.tld/about-me ,…
How can I realize this using htaccess?
In the htaccess file in your document root, try adding these above any of your wordpress rules:
etc.
Any other query string gets passed along, but the
site=somethingis stripped out.