-
AuthorPosts
-
July 30, 2018 at 11:49 am #991471
Hello,
My customer gets these items in SEO audits:
You searched for {search_term_string} – Company name
You searched for no-results:{search_term_string} – Company name
You searched for no-results:no-results:{search_term_string} – Company nameIs there a way to avoid this? Yoast SEO mentions the search page would be “no-index” but I don’t see that when I visit the search page (with / without results). I assume having this as “no-index” would solve this, even if a bot enters something in the search field…
Best regards,
JurgenJuly 31, 2018 at 8:53 am #991832Hey Jurgen,
Add this code to the child theme functions.php file to print out a noindex meta tag on the search page:
// if current page is a search page tell google (aka search engines) to not index the current page function avia_noindex_search_pages() { if ( is_search() ) { wp_no_robots(); } } add_action("wp_head", "avia_noindex_search_pages");
Best regards,
DudeAugust 1, 2018 at 7:26 pm #992525Hi Dude,
Thanks for the solution. The page is “noindex” but still these strange URLs appear in the Alexa SEO tool my customer likes to use. Any idea what the reason is for this & more, how to avoid that?
https://www.domain.com/?s=no-results:no-results:no-results:no-results:no-results:no-results:no-results:no-results:{search_term_string}
https://www.domain.com/?s=no-results:no-results:no-results:no-results:no-results:no-results:no-results:no-results:{search_term_string}&cat=1-result
https://www.domain.com/?s=no-results:no-results:no-results:no-results:no-results:no-results:no-results:no-results:{search_term_string}&cat=2-5-results
https://www.domain.com/?s=no-results:no-results:no-results:no-results:no-results:no-results:no-results:no-results:{search_term_string}&cat=no-results
https://www.domain.com/?s=no-results:no-results:no-results:no-results:no-results:no-results:no-results:no-results:{search_term_string}&cat=plus-5-results
https://www.domain.com/fr/?s=no-results:no-results:no-results:no-results:no-results:no-results:no-results:no-results:{search_term_string}
https://www.domain.com/nl/?s=no-results:no-results:no-results:no-results:no-results:no-results:no-results:no-results:{search_term_string}Best regards,
JurgenAugust 1, 2018 at 7:57 pm #992544Hi,
To be honest I don’t know. Maybe the Alexa tool caches the results or it ignores the meta robots rules :/
Best regards,
Dude -
AuthorPosts
- You must be logged in to reply to this topic.