-
AuthorPosts
-
January 6, 2020 at 1:36 am #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.
January 7, 2020 at 8:52 am #1170963Hey 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.
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,
IsmaelJanuary 7, 2020 at 3:06 pm #1171070Yeah 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.
January 7, 2020 at 9:34 pm #1171244Hi,
Just put a 301 redirect for all the ?s= urls and u are done, so you are not stuck with those errors.
Best regards,
BasilisJanuary 8, 2020 at 4:43 am #1171316301 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.
January 8, 2020 at 5:06 am #1171319Hey!
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=enMake sure that the robot.txt rule is set before doing so.
Cheers!
IsmaelJanuary 8, 2020 at 5:24 am #1171324What 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.
January 9, 2020 at 4:15 am #1171680Hi,
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,
IsmaelJanuary 9, 2020 at 4:37 am #1171684Thanks Ismael!
January 9, 2020 at 11:05 pm #1172012Hi,
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,
BasilisJanuary 10, 2020 at 2:16 am #1172040Crawling 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.
January 10, 2020 at 11:04 pm #1172309Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.