[ad_1]
Hi all, one of the crappy themes a client uses somehow generates another indexable page with search parameters appended to it when it shouldn’t. Ie [site.com/anypage?s=](https://site.com/page?s=) for most pages.
So, i want to redirect /?s= back to the original page, but only if the string is blank and NOT if the search has a string in it. So, ‘page/?s=’ should redirect, but obviously not ‘/?s=searchterm’ (as that would stop the site search from working).
Anyone any ideas on the htaccess?
[ad_2]