• Resolved docbt

    (@docbt)


    Hi,

    I noticed that wpforo shows an own 404 page, which is not the standard wordpress 404 page and which is not translated.
    I tried to use a 404 plugin to show my own 404 page, but it doesn´t work for wpforo.

    Also the wpforo 404 page is empty for me. But I see an english titel in the browser “404 – Page not found – ”
    How can I deactivate the wpforo 404 page?

    I try to remove sites from google, because I changed my permalink from “forums” to “forum”. But that doesn´t work because of the empty wpforo 404 page…

    Edit: The wpforo 404 is working and translated under the correct permalink. (“/forum/123/”)
    The problem occurs when you enter an a wrong URL with the permalink inside.

    e.g. “/forums/” or “/forum123/” instead of “/forum/”.

    • This topic was modified 4 years, 6 months ago by docbt.
    • This topic was modified 4 years, 6 months ago by docbt.
    • This topic was modified 4 years, 6 months ago by docbt.
Viewing 1 replies (of 1 total)
  • Thread Starter docbt

    (@docbt)

    I ended up in forcing a correct 404 page for my old permalink.

    function force_404() {
        global $wp;
        $current_url =  home_url( $wp->request ); 
        $pos = strpos($current_url , '/forums');
    
        if($pos > 0){
            global $wp_query;
            $wp_query->set_404();
        }
    }
    add_action( 'wp', 'force_404' );

    This way I could remove the sites in google search console 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘change/deactivate 404 page of wpforo’ is closed to new replies.