Question

For days, it has been a puzzle to me why my new site fails to rank on a very small niche. I have been doing really well on SEO with all my previous sites except my personal site. The site is on http://www.jhourlad.com. Just today, Google started displaying my site's keywords on Google Webmaster tools and I was shocked by the result. The image below sums up what I am talking about:

http://www.jhourlad.com site keywords on Google Webmaster Tools

As you can see, Google seems to be crawling my .less files and it is hurting my SEO result. Is there a way that I can tell Google to treat .less files as CSS files and bypass it during indexing?

Was it helpful?

Solution

You need to use a robots.txt file.

User-agent: *
Disallow: /*.less$
Disallow: /*.js$

Or, instead of disallowing extensions, you can place all your static content into a directory and disallow that so it's more managable.

User-agent: *
Disallow: /static/

You can use Google Webmaster Tools to validate your robots.txt file.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top