I use PolyLang for a multilingual website. When I configure Ajax Search Pro to “Redirect to: Results page” when pressing the return button (Override the default WordPress search results OFF), I get a 404 on the french version of the website and it redirects to the homepage in english.
In french
http://shorfishing.steveforest.com/fr/accueil/?s=test
In english
http://shorfishing.steveforest.com/en/home/?s=test
I figured out that the “/accueil/” and “/home/” is the problem in the URLs. Without it, the search results page loads. How can I configure Ajax Search Pro to load “/fr/?s=test” and “/en/?s=test” to make it works? Is using custom URLs by adding a function in functions.php the only way? I’m not a programmer so i’d like to know if there’s another way.
Thanks