-
AuthorPosts
-
February 28, 2018 at 10:54 pm #919307
Hi there,
I’ve been getting a ton of issue warnings from my SEO service that are related to pages going to the 404 page using a link that has /?s= at the end of it. And it gets appended to the referrer and so I end up with dozens of error messages. In the code it looks like this. (See image link attached.)
Wait – I can’t remember the name of the site where i can post pictures to show you. Can you remind me?
Any idea how I can remove or disable or whatever that bad link?
March 1, 2018 at 9:14 pm #919898Hey Dandelion222,
That is not an actual error. WordPress is using it for search – and actually for good SEO you do have to disable it.
The best idea to stop those error is using the following pluginBest regards,
BasilisMarch 1, 2018 at 9:34 pm #919929Hi,
I am already using a redirection plugin. I’m not sure this is really the issue. It’s hard to understand what you are trying to say. What do you mean “WordPress is using it for search?” Using what for search? What search? Why is it appearing on my Enfold websites but not the others?
But I’ve figured out how to post a screenshot, so I have posted 2 to help you understand what I am getting at.
March 2, 2018 at 12:28 pm #920283Hi,
Please try to disallow the search query or search pages from being crawled in the robot.txt file.
Best regards,
IsmaelMarch 2, 2018 at 4:07 pm #920405I will check into that and let you know how that goes. Thanks.
March 2, 2018 at 4:46 pm #920428That’s it – the same issue I am having! Fortunately, in this case I am fine to just turn off the search feature for now. But how?
I’ve looked through all the settings and I am not seeing that option. It is not in Header > Extra elements as the first post suggests.
March 3, 2018 at 11:05 am #920724Hi Dandelion222,
This code added in functions.php will do the trick
add_action('after_setup_theme', function() { remove_action( 'wp_ajax_avia_ajax_search', 'avia_ajax_search' ); remove_action( 'wp_ajax_nopriv_avia_ajax_search', 'avia_ajax_search' ); });
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.