-
Hello,
I need to add the following code in robot.txt
Disallow: /wp-admin/
Disallow: /*?*wordfence_lhIf I click the field and add the code in the RankMath Edit robots.txt, do I need to add the following default code before the above?
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.phpSitemap: https://example.com/sitemap_index.xml
After this, do I also need to add the whole code in Google search console’s robots.txt Tester? If I click See live robots.txt, I only see this,
Disallow: /wp-admin/
Disallow: /*?*wordfence_lhIt is confusing and I’m not clear at all, please advise.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The ticket ‘how to add code in robot.txt’ is closed to new replies.