Robots.txt update + new htaccess for cache folder.

Updated robots.txt + new htaccess files.

I made the following changes for the robots.txt and .htaccess files.

# robots.txt updated
- Allow theme assets (CSS, JS, Images, Fonts) for SEO
- Allow folder with uploaded images (/content/images)

# .httaccess files added
- /content - Deny all
- /content/images - Allow only jpg|png|gif
- /cache - Deny all
- /system - Deny all
- /system/admin/editor - Allow all
- /system/resources - Allow all
- /themes - Deny all
- /themes/blog/css - Allow all
- /themes/blog/fonts - Allow all
- /themes/blog/images - Allow all
- /themes/blog/js - Allow all
- /themes/clean/css - Allow all
- /themes/default/css  - Allow all
- /themes\default\img - Allow all
- /themes\logs\css - Allow all
This commit is contained in:
Andreas 2015-08-24 16:02:46 +02:00
commit 80afb162d9
16 changed files with 35 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,30 @@
# 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/*.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