Viewing 3 replies - 1 through 3 (of 3 total)
  • what do you mean by ‘divided’ ? public homepage vs. membership login ?

    Check permalink settings in WP backend. As well as searchform.php in your theme folder (see: https://codex.www.ads-software.com/Creating_a_Search_Page)

    Thread Starter thh022

    (@thh022)

    Sorry for being unclear.

    If you type our domain in a browser the 301 will redirect to domain.com/private.

    What I did write about private vs company doesn’t have anything with the problem.

    I see now that we have to pages called private:

    domain.com/private
    domain.com/form/private

    It seems like when using the search field it goes to domain.com/form/private

    Why?

    • This reply was modified 7 years, 10 months ago by thh022.
    Thread Starter thh022

    (@thh022)

    *** UPDATE ***

    I tried to remove the 301 redirect and search worked just fine so the problem is the redirect.

    I have tried to change the path in the form:

    <form role=”search” method=”get” class=”search-form” action=”<?php echo esc_url( home_url( ‘/’ ) ); ?>”>

    …but I can’t get it right. I still get a 404 error when doing a search.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Search-result page get a 404’ is closed to new replies.