Mobile app version of vmapp.org
Login or Join
Lengel546

: URL is indexed but description not available due to "this site's robots.txt" I have a similar URL indexed by Google https://example.com/companies/company?utm_source=xxx And this output: A description

@Lengel546

Posted in: #GoogleSearch #RobotsTxt #Seo

I have a similar URL indexed by Google
example.com/companies/company?utm_source=xxx
And this output:

A description for this result is not available because of this site's robots.txt.

Here is the robots.txt

User-agent: *
Disallow: /
Disallow: /static/*
Disallow: /templates/*
Disallow: /translations/*
Sitemap: example.com/sitemap.xml

I have two questions. Should this type of URL be indexed? If so, how can I remove that message about description?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Lengel546

1 Comments

Sorted by latest first Latest Oldest Best

 

@Margaret670

Remove this line

Disallow: /


And you're good to go.

User-agent: *
Disallow: /


Here * means all polite bot including Googlebot, BingBot, YandexBot will follow your robots.txt rules, and / meaning all the directory is restricted to crawl.

You should use only this rule.

User-agent: *
Disallow: /static/*
Disallow: /templates/*
Disallow: /translations/*
Sitemap: example.com/sitemap.xml

This robots.txt tell all polite bot to don't crawl all files inside static, templates and translations folder. So again if your sitemap contain these URL's
example.com/static/some-javscript.js https://example.com/static/some-photos.png example.com/templates/some/index.html https://example.com/templates/translations/de/index.html


Then Google will still display that line in search results because you've block it for crawling, so understand robots.txt concept, it's not hard to understand at all.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme