My site is indexing plugins... How do I fix this?

ch3sty

Regular Member
Joined
Nov 29, 2015
Messages
338
Reaction score
214
Hi,

I recently found out that my site has indexed pages like:
site.com/wp-content/plugins/link-whisper/css/
site.com/wp-content/plugins/google-site-kit/dist/assets/js/

Bonus question, get this one right and you might win a virtual hug. :anyway:
My site also index links like:
site.com/post/#relatedposts in the same category (I have no index categories)

How do I get this sorted? And could it be becouse I have a few internal server-error (5xx)
I have sent the server error for validation since I thought it was sorted out, everything works as usual both front+backend.

Would really appreciate any help I can get :)

//Ch3sty
 
If you have an SEO plugin like all in one SEO you can add pages to noindex. If not, you can add a noindex tag in .htaccess.. block them manually if you can't do it in any other way. WMT I think has an option to noindex pages..
 
You should block robots from crawling /wp-content/plugins/ with robots txt file.
 
If you have an SEO plugin like all in one SEO you can add pages to noindex. If not, you can add a noindex tag in .htaccess.. block them manually if you can't do it in any other way. WMT I think has an option to noindex pages..

Yeah I think it started when I moved from all in one to Rank Math.
Will look into that. Thanks!

You should block robots from crawling /wp-content/plugins/ with robots txt file.

Are you willing to spoonfeed me an example code?

Thanks for the help guys!
 
If your using WP get yourself Robots.txt Editor plugin
Your robots file should look like this:

User-agent: *
Disallow: /category/
Disallow: /tag/
Disallow: /wp-content/plugins/

The tag and category are optional. I disallow them because it works for me.
To learn more just google it.
 
Back
Top