I want to disallow the search link on my site in the robots.txt.
After I click the search submit button, my URL will look like:
example.com/searching?k=something
How can I write this URL address into my robots.txt file?
My robots.txt file looks like this:
User-agent: *
Disallow: /admin_folder
Sitemap: https://www.domain-address.com/sitemap.xml
Host: www.domain-address.hu
function search_k()
{
if($.trim($('#country_id').val()) != "" )
{
//document.location = http_host+'/kereses.php?k='+$('#country_id').val();
var KeyWord = encodeURIComponent($('#country_id').val()).replace(/%20/g, '+');
document.location = http_host+'/searching?k='+KeyWord;
}
return false;
}