Hello,
Thank you for contacting Rank Math support, and sorry for any inconvenience that might have been caused due to that.
I was able to see the same URL on Google SERP.
Kindly try disallowing /wp-content/
or /wp-content/themes/
via your robots.txt.
https://rankmath.com/kb/how-to-edit-robots-txt-with-rank-math/#edit-robotstxt
Then, please clear your website and server’s cache (if any) and give Google some time to crawl the website and see if that fixes the issue. Please note that as the URLs are already indexed, it can take some time for Google to remove that URL from the SERPs.
Hope this helps.
Thank you.
add this code?
or is the rest unnecessary? could you tell me the exact code?
User-agent: *
Disallow: /wp-admin/
Disallow: /wp-content/
Allow: /wp-admin/admin-ajax.php
Sitemap: yoursite.com/sitemap_index.xml
Hello,
Add this code to your robots.txt file Disallow: /wp-content/themes/
following the guide mentioned above.
Then wait for Google to update the robots.txt.
Let us know how that goes.
Thank you.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.