Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Robots.txt for umbraco

I wonder if there is a default Robots.txt for Umbraco (7.5) websites. Right now, I created one with these items. Shall I add anything else?

User-Agent: *
Disallow: /umbraco/
Disallow: /umbraco_client/
Disallow: /css
Disallow: /Errorpages/
Disallow: /scripts/
Disallow: /Config/
like image 348
Ashkan S Avatar asked Oct 27 '25 07:10

Ashkan S


2 Answers

You should consider removing /css and /scripts from the list, actually. I believe Google finds it friendlier/better for those to be available.

Otherwise, maybe put /install/ in there as well, just as a precaution.

like image 167
Jannik Anker Avatar answered Oct 29 '25 20:10

Jannik Anker


Regarding CSS & JSS check this: https://yoast.com/dont-block-your-css-and-js-files/. I decided to cut them off lately.

Mine, always used with Umbraco instances, robots.txt file looks like this:

# robots.txt for Umbraco
User-agent: *
Disallow: /aspnet_client/
Disallow: /bin/
Disallow: /config/
Disallow: /data/
Disallow: /install/
Disallow: /macroScripts/
Disallow: /masterpages/
Disallow: /umbraco/
Disallow: /umbraco_client/
Disallow: /usercontrols/
Disallow: /xslt/
User-agent: Libwww-perl
Disallow: /
Sitemap: http://{HTTP_HOST}/sitemap
like image 40
Marcin Zajkowski Avatar answered Oct 29 '25 21:10

Marcin Zajkowski



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!