diff --git a/assets/.htaccess b/assets/.htaccess
old mode 100644
new mode 100755
index 38f1742..1611232
--- a/assets/.htaccess
+++ b/assets/.htaccess
@@ -1,36 +1,27 @@
#
# Whitelist appropriate assets files.
-# Note that you will need to maintain this whitelist yourself if you modify File::$allowed_extensions
+# This file is automatically generated via File.allowed_extensions configuration
+# See AssetAdapter::renderTemplate() for reference.
#
-# If you are not using Apache then you can ignore this file.
-# If you are using IIS then you should look at assets/web.config instead.
-#
-# To add an extension to the list, you need to put another string of the form "ext|" on the
-# FilesMatch line, inside the parentheses.
-#
-# For example, to add *.exe files to list of downloadable assets, change this line:
-#
-#
- Allow from all
-
-# We disable PHP via several methods
-# Replace the handler with the default plaintext handler
-AddHandler default-handler php phtml php3 php4 php5 inc
+
+ SetEnv HTTP_MOD_REWRITE On
+ RewriteEngine On
-
- # Turn the PHP engine off
- php_flag engine off
+ # Disable PHP handler
+ RewriteCond %{REQUEST_URI} .(?i:php|phtml|php3|php4|php5|inc)$
+ RewriteRule .* - [F]
+
+ # Allow error pages
+ RewriteCond %{REQUEST_FILENAME} -f
+ RewriteRule error[^\/]*.html$ - [L]
+
+ # Block invalid file extensions
+ RewriteCond %{REQUEST_URI} !.(?i:ace|arc|arj|asf|au|avi|bmp|bz2|cab|cda|css|csv|dmg|doc|docx|dotx|dotm|flv|gif|gpx|gz|hqx|ico|jar|jpeg|jpg|js|kml|m4a|m4v|mid|midi|mkv|mov|mp3|mp4|mpa|mpeg|mpg|ogg|ogv|pages|pcx|pdf|png|pps|ppt|pptx|potx|potm|ra|ram|rm|rtf|sit|sitx|tar|tgz|tif|tiff|txt|wav|webm|wma|wmv|xls|xlsx|xltx|xltm|zip|zipx)$
+ RewriteRule .* - [F]
+
+ # Non existant files passed to requesthandler
+ RewriteCond %{REQUEST_URI} ^(.*)$
+ RewriteCond %{REQUEST_FILENAME} !-f
+ RewriteRule .* ../framework/main.php?url=%1 [QSA]