.htaccess redirect only if GET parameter exists
问题 I have a client with an old website without 'pretty' URLs. So currently it looks like this: http://www.domain.com/?w=42&a=5&b=3 The parameter values are numbers only. Now they want to move the old site to a subdomain and main (www) domain would be home to a new website (WP with SEO friendly URLs). Now what I would like to do is redirect all requests that come to the /?w=<num> (and ONLY those) to sub.domain.com/?w=<num> , so that existing links (mostly from Google) get redirected to the