Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: 404 tag errors on Google Search Console

Discussion in 'Misc WordPress Requests' started by worldless, Jan 31, 2018.

  1. worldless


    Reply To: 404 tag errors on Google Search Console, by worldless

    Thanks Marcus

    Unfortunately it couldn’t help. the thing is I almost (and I mean almost) know where the problem lies but I have no idea how to redirect them now that the google search console has run into errors. like I said tags are working fine separately. they’re only mixed up with each other. if I delete one, the other works just fine. even if I fixed the ../ url it wouln’t fix the issue.

    You know I’d like to redirect all 404 errors using the following code :

    header("HTTP/1.1 301 Moved Permanently");
    header("Location: ".get_bloginfo('url'));

    but not to the home page and not to a 404 custom page as well. when I type any gibberish after my website (say http://www.example.com/asdasd) it redirects to a default 404 error page with some info and a search bar. how may I modify it so that it redirects to the default WordPress 404 error ?!!

    Reply To: 404 tag errors on Google Search Console

Share This Page

Monarch Social Sharing Plugin