Browse Source

Merge pull request #192 from greenphp/htaccess-and-robots-update

Updated robots.txt  + added new htaccess files. by @greenphp
pull/255/head
Dan 10 years ago
parent
commit
eb2e5320e4
16 changed files with 37 additions and 4 deletions
  1. +1
    -0
      cache/.htaccess
  2. +1
    -0
      content/.htaccess
  3. +4
    -0
      content/images/.htaccess
  4. +19
    -4
      robots.txt
  5. +1
    -0
      system/.htaccess
  6. +1
    -0
      system/admin/editor/.htaccess
  7. +1
    -0
      system/resources/.htaccess
  8. +1
    -0
      themes/.htaccess
  9. +1
    -0
      themes/blog/css/.htaccess
  10. +1
    -0
      themes/blog/fonts/.htaccess
  11. +1
    -0
      themes/blog/images/.htaccess
  12. +1
    -0
      themes/blog/js/.htaccess
  13. +1
    -0
      themes/clean/css/.htaccess
  14. +1
    -0
      themes/default/css/.htaccess
  15. +1
    -0
      themes/default/img/.htaccess
  16. +1
    -0
      themes/logs/css/.htaccess

+ 1
- 0
cache/.htaccess View File

@ -0,0 +1 @@
deny from all

+ 1
- 0
content/.htaccess View File

@ -0,0 +1 @@
deny from all

+ 4
- 0
content/images/.htaccess View File

@ -0,0 +1,4 @@
Deny from all
<Files ~ "\.(jpg|png|gif)$">
Allow from all
</Files>

+ 19
- 4
robots.txt View File

@ -17,17 +17,32 @@
# http://www.sxw.org.uk/computing/robots/check.html
User-agent: *
# Directories
# Disallow directories
Disallow: /config/
Disallow: /system/
Disallow: /themes/
Disallow: /vendor/
Disallow: /cache/
# Files
# Disallow files
Disallow: /changelog.txt
Disallow: /composer.json
Disallow: /composer.lock
Disallow: /composer.phar
# Paths
# Disallow paths
Disallow: /search/
Disallow: /admin/
Disallow: /admin/
# Allow themes
Allow: /themes/*/css/
Allow: /themes/*/images/
Allow: /themes/*/img/
Allow: /themes/*/js/
Allow: /themes/*/fonts/
# Allow content images
Allow: /content/images/*.jpg
Allow: /content/images/*.png
Allow: /content/images/*.gif

+ 1
- 0
system/.htaccess View File

@ -0,0 +1 @@
deny from all

+ 1
- 0
system/admin/editor/.htaccess View File

@ -0,0 +1 @@
allow from all

+ 1
- 0
system/resources/.htaccess View File

@ -0,0 +1 @@
allow from all

+ 1
- 0
themes/.htaccess View File

@ -0,0 +1 @@
deny from all

+ 1
- 0
themes/blog/css/.htaccess View File

@ -0,0 +1 @@
allow from all

+ 1
- 0
themes/blog/fonts/.htaccess View File

@ -0,0 +1 @@
allow from all

+ 1
- 0
themes/blog/images/.htaccess View File

@ -0,0 +1 @@
allow from all

+ 1
- 0
themes/blog/js/.htaccess View File

@ -0,0 +1 @@
allow from all

+ 1
- 0
themes/clean/css/.htaccess View File

@ -0,0 +1 @@
allow from all

+ 1
- 0
themes/default/css/.htaccess View File

@ -0,0 +1 @@
allow from all

+ 1
- 0
themes/default/img/.htaccess View File

@ -0,0 +1 @@
allow from all

+ 1
- 0
themes/logs/css/.htaccess View File

@ -0,0 +1 @@
allow from all

Loading…
Cancel
Save