Title: Search function
Last modified: October 10, 2018

---

# Search function

 *  Resolved [x](https://wordpress.org/support/users/rguad/)
 * (@rguad)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/search-function-56/)
 * I have my main domain and an additional domain
    main: domain.com.au additional:
   domain.nz
 * When I visit domain.nz it works well, browsing the links works well. When I go
   to use the search function it searches and returns domain.com.au results & subsequently
   changes the URL.
 * Is it something to do with searchform.php using home_url which has my domain.
   com.au address? I would assume I need to look into adding multiple home_urls 
   within wp-config.php ?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [Gustavo Straube](https://wordpress.org/support/users/gustavostraube/)
 * (@gustavostraube)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/search-function-56/#post-10898234)
 * Hello,
 * First of all, sorry for the delayed response.
 * Except for very specific cases, you shouldn’t be required to change your `wp-
   config.php` file to properly run this plugin. The domain changes are made on 
   the fly, using WP actions and filters.
 * In any way, this is a weird behavior. I’ll run some tests and let you know about
   my finding. Also, ping me here if you found a solution in the meantime. It can
   be helpful for other users. 🙂
 * See you soon.
 *  Plugin Contributor [Gustavo Straube](https://wordpress.org/support/users/gustavostraube/)
 * (@gustavostraube)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/search-function-56/#post-10990918)
 * Hello again,
 * It’s been a while since I worked on this plugin for the last time. Anyway, I 
   ran a couple tests today and using the default WordPress theme (Twenty Nineteen)
   the search worked as expected. Are you using a custom made theme? How does your
   search form look like? Can you show the code here?
 * Regards!
 *  Plugin Contributor [Gustavo Straube](https://wordpress.org/support/users/gustavostraube/)
 * (@gustavostraube)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/search-function-56/#post-11064184)
 * I’m closing this topic since I got no answer in the last 3 weeks. Feel free to
   open a new one or fill an issue on Github: [https://github.com/straube/multiple-domain/issues](https://github.com/straube/multiple-domain/issues)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Search function’ is closed to new replies.

 * ![](https://ps.w.org/multiple-domain/assets/icon-256x256.png?rev=2502840)
 * [Multiple Domain](https://wordpress.org/plugins/multiple-domain/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/multiple-domain/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/multiple-domain/)
 * [Active Topics](https://wordpress.org/support/plugin/multiple-domain/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/multiple-domain/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/multiple-domain/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Gustavo Straube](https://wordpress.org/support/users/gustavostraube/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/search-function-56/#post-11064184)
 * Status: resolved