dynamic search redirect

[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]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer