Redirect Default WordPress Search to Search Page

I'm running the Genesis Framework and need a way to redirect the primary search results URL (/?s=) and search boxes to a new/custom search page in order to get FacetWP and SearchWP working nicely together.

On the default search archive, SearchWP is taking over and overriding FacetWP's own result search and filter.

I need to be able to redirect results and searches from /?s= to /search/?_s=

Those settings should apply to both the search archive itself (if anyone manually attempts to visit it or manually enters a search) and the default WordPress search boxes/widgets across the site.

Usually, this would be simple, and FacetWP provide code for str/preg replaces to redirect search boxes:

add_filter( 'get_search_form', function( $form ) {

$form = str_replace( 'name="s"', 'name="_search"', $form );

$form = preg_replace( '/action=".*"/', 'action="/search/"', $form );

return $form;

} );

However, Genesis has its own filter (genesis_search_form) and own search box settings which are interfering with that working, and I can't find a way to disable Genesis's search box to get back to the WordPress default.

I also need to make sure that the search page slug (/search/) to be a globally set variable, as we'll need to do manual translations on the site's template in the near future and only want to have to change them in one place.

It should be fairly straightforward for someone well versed in PHP, but not being a coder/developer I can't QUITE make it work.

Hopefully, that makes sense, but if you need to know any more please ask!

Skills: WordPress, PHP

See more: wordpress search page title, wordpress search results page, wordpress custom search query, wordpress redirect search page, how to create search in wordpress, wordpress search url, wordpress search results page plugin, wordpress search query, default start page javascript, javascript redirect without submitting page, page search current page, wordpress advanced search filter, upload php wordpress page, default start page, wordpress page shows category, set default start page, web page search bar, adding javascript popup window wordpress page, html upload form wordpress page, javascript code correctly redirect user web page

About the Employer:
( 5 reviews ) Launceston, United Kingdom

Project ID: #20431072

Awarded to:


Hi There, I can fix it now. I am PHP experts having combined experience of more Than 6 years in PHP Framework :- Prestashop,Magento, Wordpress, & BIgcommerce and already completed more than 100 projects successfully. More

£20 GBP in 1 day
(103 Reviews)

13 freelancers are bidding on average £17 for this job


I am specialize in website design and development and are excited for the opportunity to work with you in accomplishing your goals. I am Good at PHP, WordPress. Hi jonwatson87! Please Send me a message so that we can d More

£20 GBP in 5 days
(86 Reviews)

Hello sir. I have good skills and experiences as you requested on your project. You can see my results as follow. [login to view URL] [login to view URL] https://penguin More

£15 GBP in 7 days
(52 Reviews)

Hello Sir/Ma'am, We are the team of IT professionals, with experience of 6+ years in Web technologies/Mobile Application development , software development. We have successfully worked with PHP, Magento, Joomla, Java, More

£11 GBP in 1 day
(55 Reviews)

Sir, I run a Software House. I can focus on your project according to your instructions. Come on to discuss if you like My Multi-Skills. Have a look @My Profile. I'm a professional Apps & web developer, SEO Exper, Vir More

£25 GBP in 1 day
(27 Reviews)

Dear, Sir. How are you? I have read explanation for your project in details. I have been building website for 8+ years. During that period, I have ever developed platform, online-store and e-commerce site. I'm mast More

£20 GBP in 7 days
(9 Reviews)

I have been through your requirement very well. I have done similar projects like yours. I have great experience in Mobile and Web Development. I'm quite confident that I can handle your project perfectly. My Core Ski More

£15 GBP in 1 day
(11 Reviews)

Greetings! I'm a full-stack software developer specializing in modern Web. I have just read your description & project details and I am very interested in your job. I am always working with thought that your job is my More

£15 GBP in 7 days
(4 Reviews)

Hello and welcome in our group we so happy for this chance to give us this opportunity to work with you in your project My name is Ibtisam the CEO of our group I read the description that related in your project and More

£15 GBP in 7 days
(1 Review)

Hello, How are you doing? We are a World Renowned Professional IT Company And We Have Understood About Your Work What You Exactly Want. We Just Saw Your Project Description Carefully. We Are very Interested In Your Pro More

£20 GBP in 7 days
(5 Reviews)

I am a Php developer.I also expert in wordpress.I have been worked during 11 yrs in Jquery/Javascript and core php also.I have been worked on that field during 11 years of experience with that filed. I am able to fi More

£20 GBP in 0 days
(1 Review)

I've read the project description and can develop definitely. I'll provide you with the highly skilled & professional HTML/CSS, PHP/WordPress/CodeIgniter, JavaScript, MySQL, Web Development Services and complete the s More

£15 GBP in 3 days
(0 Reviews)

i will do it first bid on freelancer add function in your wordpress website and some codes. it will take some according your hosting server speed

£15 GBP in 5 days
(0 Reviews)