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

Updated robots.txt  + added new htaccess files. by @greenphp
This commit is contained in:
Dan 2015-08-24 21:11:28 +07:00
commit eb2e5320e4
16 changed files with 37 additions and 4 deletions

1
cache/.htaccess vendored Normal file
View file

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

1
content/.htaccess Normal file
View file

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

4
content/images/.htaccess Normal file
View file

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

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
system/.htaccess Normal file
View file

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

View file

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

View file

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

1
themes/.htaccess Normal file
View file

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

View file

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

View file

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

View file

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

1
themes/blog/js/.htaccess Normal file
View file

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

View file

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

View file

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

View file

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

View file

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