Skip to content

Commit 7543eae

Browse files
Issue #2364343 by damien_vancouver, criz, ksenzee, Neograph734, joegraduate, k_zoltan, droplet, pounard, jp.stacey, ciss, corbacho, TravisJohnston: Fix robots.txt to allow search engines access to CSS, JavaScript and image files
1 parent 8f7f28b commit 7543eae

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

CHANGELOG.txt

+2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ Drupal 7.50, xxxx-xx-xx (development version)
3232
tests within a project.
3333
- Made run-tests.sh exit with a failure code when there are test fails or
3434
problems running the script.
35+
- Fixed robots.txt to allow search engines to access CSS, JavaScript and image
36+
files.
3537

3638
Drupal 7.44, 2016-06-15
3739
-----------------------

robots.txt

+33
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,39 @@
1515

1616
User-agent: *
1717
Crawl-delay: 10
18+
# CSS, JS, Images
19+
Allow: /misc/*.css$
20+
Allow: /misc/*.css?
21+
Allow: /misc/*.js$
22+
Allow: /misc/*.js?
23+
Allow: /misc/*.gif
24+
Allow: /misc/*.jpg
25+
Allow: /misc/*.jpeg
26+
Allow: /misc/*.png
27+
Allow: /modules/*.css$
28+
Allow: /modules/*.css?
29+
Allow: /modules/*.js$
30+
Allow: /modules/*.js?
31+
Allow: /modules/*.gif
32+
Allow: /modules/*.jpg
33+
Allow: /modules/*.jpeg
34+
Allow: /modules/*.png
35+
Allow: /profiles/*.css$
36+
Allow: /profiles/*.css?
37+
Allow: /profiles/*.js$
38+
Allow: /profiles/*.js?
39+
Allow: /profiles/*.gif
40+
Allow: /profiles/*.jpg
41+
Allow: /profiles/*.jpeg
42+
Allow: /profiles/*.png
43+
Allow: /themes/*.css$
44+
Allow: /themes/*.css?
45+
Allow: /themes/*.js$
46+
Allow: /themes/*.js?
47+
Allow: /themes/*.gif
48+
Allow: /themes/*.jpg
49+
Allow: /themes/*.jpeg
50+
Allow: /themes/*.png
1851
# Directories
1952
Disallow: /includes/
2053
Disallow: /misc/

0 commit comments

Comments
 (0)