Robots.txt - dali je dobro podešen?

Bok,

znači ovo imam napisano u robots.txt file-u

User-agent: *
# disallow all files in these directories
Disallow: /cgi-bin/
Disallow: /wp-admin/
Disallow: /wp-includes/
Disallow: /wp-content/
Disallow: /archives/
disallow: /*?*
Disallow: *?replytocom
Disallow: /wp-*
Disallow: /comments/feed/
User-agent: Mediapartners-Google*

#allow all files in these directories
User-agent: Googlebot-Image
Allow: /wp-content/uploads/

User-agent: Adsbot-Google
Allow: /

User-agent: Googlebot-Mobile
Allow:

i sada mi u google webmaster tools javlja grešku:

Karta web-lokacije sadrži URL-ove koji su blokirani datotekom robots.txt.

odnosno sve slike mi blokira… a prema gore navedenom ne bi trebao ?

hvala

Trebalo bi,jer si blokirao wp-content tako da ti ne vrijedi ovo sto si wp-content\ uploads dopustio,kad se folder uploads nalazi unutar wp-content foldera,koji je blokiran. Na wordpressu ti uopce ne treba ovakav robots.txt file jer wordpress savrseno dobro sam pravi taj file. Osim ako nemas nekakve gadne hakerske napade na stranici,onda se ovo isplati,inace ne.

2 Likes

onda bum maknuo Disallow: /wp-content/

hvala


Copyright © 2020 WM Forum - AboutContact - Sponsored by: Mydataknox & Profit Monkey