• Resolved x

    (@rguad)


    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

    (@gustavostraube)

    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

    (@gustavostraube)

    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

    (@gustavostraube)

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Search function’ is closed to new replies.