mirror of
https://github.com/danpros/htmly.git
synced 2026-04-17 11:16:00 +05:30
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:
parent
b2aef582f5
commit
80afb162d9
16 changed files with 35 additions and 4 deletions
1
cache/.htaccess
vendored
Normal file
1
cache/.htaccess
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
deny from all
|
||||
1
content/.htaccess
Normal file
1
content/.htaccess
Normal file
|
|
@ -0,0 +1 @@
|
|||
deny from all
|
||||
4
content/images/.htaccess
Normal file
4
content/images/.htaccess
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
Deny from all
|
||||
<Files ~ "\.(jpg|png|gif)$">
|
||||
Allow from all
|
||||
</Files>
|
||||
21
robots.txt
21
robots.txt
|
|
@ -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
1
system/.htaccess
Normal file
|
|
@ -0,0 +1 @@
|
|||
deny from all
|
||||
1
system/admin/editor/.htaccess
Normal file
1
system/admin/editor/.htaccess
Normal file
|
|
@ -0,0 +1 @@
|
|||
allow from all
|
||||
1
system/resources/.htaccess
Normal file
1
system/resources/.htaccess
Normal file
|
|
@ -0,0 +1 @@
|
|||
allow from all
|
||||
1
themes/.htaccess
Normal file
1
themes/.htaccess
Normal file
|
|
@ -0,0 +1 @@
|
|||
deny from all
|
||||
1
themes/blog/css/.htaccess
Normal file
1
themes/blog/css/.htaccess
Normal file
|
|
@ -0,0 +1 @@
|
|||
allow from all
|
||||
1
themes/blog/fonts/.htaccess
Normal file
1
themes/blog/fonts/.htaccess
Normal file
|
|
@ -0,0 +1 @@
|
|||
allow from all
|
||||
1
themes/blog/images/.htaccess
Normal file
1
themes/blog/images/.htaccess
Normal file
|
|
@ -0,0 +1 @@
|
|||
allow from all
|
||||
1
themes/blog/js/.htaccess
Normal file
1
themes/blog/js/.htaccess
Normal file
|
|
@ -0,0 +1 @@
|
|||
allow from all
|
||||
1
themes/clean/css/.htaccess
Normal file
1
themes/clean/css/.htaccess
Normal file
|
|
@ -0,0 +1 @@
|
|||
allow from all
|
||||
1
themes/default/css/.htaccess
Normal file
1
themes/default/css/.htaccess
Normal file
|
|
@ -0,0 +1 @@
|
|||
allow from all
|
||||
1
themes/default/img/.htaccess
Normal file
1
themes/default/img/.htaccess
Normal file
|
|
@ -0,0 +1 @@
|
|||
allow from all
|
||||
1
themes/logs/css/.htaccess
Normal file
1
themes/logs/css/.htaccess
Normal file
|
|
@ -0,0 +1 @@
|
|||
allow from all
|
||||
Loading…
Add table
Add a link
Reference in a new issue