Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1170589

    Google is adding “?s=” to every one of my pages which ends up being a page with a “new search” search box and then saying it’s a soft 404. This needs to be fixed. It could be the search box hover layer causing the issue, I don’t know.

    #1170963

    Hey dethfire,

    Thank you for using Enfold.

    Have you tried disallowing crawlers from indexing pages with the search query? This can be done in the robot.txt file as described in the following thread.

    // https://kriesi.at/support/topic/how-to-exclude-internal-search-results-to-be-indexed-properly-robots-txt/

    All you need is this line

    User-agent: *
    Disallow: /*?s=
    

    This is according to Yoast’s.

    // https://yoast.com/blocking-your-sites-search-results/

    Best regards,
    Ismael

    #1171070

    Yeah that would be great from the get go, but now the page is indexed and seen as a soft 404. Blocking Google from the page doesn’t remove the page from the index. It will just block Google from re-evaluating the page. It will be forever stuck as a soft 404.

    #1171244

    Hi,

    Just put a 301 redirect for all the ?s= urls and u are done, so you are not stuck with those errors.

    Best regards,
    Basilis

    #1171316

    301 to what? I don’t think that’s what it’s designed for.That page for whatever reason doesn’t have a non parameter canonical. That is what it needs.

    #1171319

    Hey!

    Blocking Google from the page doesn’t remove the page from the index.

    You can ask google to re-crawl the site or validate the fix that you have implemented for the errors or warnings. Please check these articles.

    // https://support.google.com/webmasters/answer/7440203?hl=en > Details page section
    // https://support.google.com/webmasters/answer/6065812?hl=en

    Make sure that the robot.txt rule is set before doing so.

    Cheers!
    Ismael

    #1171324

    What you’re saying doesn’t make sense to me. Ask them to recrawl my pages that you want me to block? Robot blocking is for before they ever crawl or once it’s out of the index. It needs to either be noindexed or canonicalized.

    #1171680

    Hi,

    Google will reprocess your whole site or the pages that you’ve asked them to re-crawl, so if they find that the pages with the search query is no longer accessible, then it will be reflected in your search console. Make sure to validate the fix that you have done as described in the documentation. Previously, there is a button that allows to manually mark these errors or warnings as fix, if you already implemented a solution for those errors, but this button is no longer available.

    However, if you really want to add or set the noindex meta tag when the search query is present, try this filter in the functions.php file instead.

    add_filter('avf_set_follow','av_set_nofollow');
    function av_set_nofollow(){
    	if ((is_single() || is_page() || is_home() ) && ( !is_paged() || !$_GET['s'] ))
    		{
    			$meta = '<meta name="robots" content="index, follow" />' . "\n";
    		}
    		else if( is_search() || $_GET['s'] )
    		{
    			$meta = '<meta name="robots" content="noindex, nofollow" />' . "\n";
    		}
    		else
    		{
    			$meta = '<meta name="robots" content="noindex, follow" />' . "\n";
    		}
    	return $meta;
    }

    You may still need to ask Google to re-crawl your site in order for the changes to reflect, or wait for quite a while for them to automatically index your site.

    Best regards,
    Ismael

    #1171684

    Thanks Ismael!

    #1172012

    Hi,

    301 is in fact designed for this and it is better form the nofollow. Google can still crawl pages with nofollow tag, it does not make it 100% sure not to crawl them,

    Best regards,
    Basilis

    #1172040

    Crawling is not the issue, it’s Google thinking it’s valued and wanting to be indexed. 301 is for content that has moved. The search page has not moved locations.

    #1172309

    Hi,

    Yes but you want to block the query and if you do it like that you do not lose the value of the page.
    Trust me, this will help you any other way will hurt you.

    Best regards,
    Basilis

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.