Update robots.txt and set X-Robots-Tag header
This commit is contained in:
parent
fbf3d9813b
commit
bb474315ab
|
@ -15,3 +15,8 @@ ErrorDocument 404 /404.html
|
||||||
<FilesMatch "\.(css|ico|jpg|jpeg|png|svg)$">
|
<FilesMatch "\.(css|ico|jpg|jpeg|png|svg)$">
|
||||||
Header set Cache-Control "max-age=2592000, public, immutable"
|
Header set Cache-Control "max-age=2592000, public, immutable"
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
|
|
||||||
|
# Prevent indexing of PDF files
|
||||||
|
<FilesMatch "\.(pdf)$">
|
||||||
|
Header always set X-Robots-Tag "noindex, nofollow"
|
||||||
|
</FilesMatch>
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
# Disallow crawling of specific directories and file types
|
# Disallow crawling of specific directories and file types
|
||||||
User-agent: *
|
User-agent: *
|
||||||
Disallow: /*.asc.txt$
|
Disallow: /*.asc.txt$
|
||||||
Disallow: /*.pdf$
|
|
||||||
Disallow: /documents/
|
Disallow: /documents/
|
||||||
Disallow: /img/
|
Disallow: /img/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue