diff --git a/.htaccess b/.htaccess
index 4db1c8331b8..9f38ff7dabc 100644
--- a/.htaccess
+++ b/.htaccess
@@ -1,16 +1,21 @@
# the rewrite engine requires the ability to follow sym links
Options +FollowSymLinks
-RewriteEngine On
-RewriteRule ^themes/([a-zA-Z\-\_\0-9]+)\/$ combine.php?type=css&theme=$1
-RewriteRule ^js/all combine.php?type=javascript
+
+ RewriteEngine On
+ RewriteRule ^themes/([a-zA-Z\-\_\0-9]+)\/$ combine.php?type=css&theme=$1
+ RewriteRule ^js/all combine.php?type=javascript
+
# Turn on Expires and set default to 0
-ExpiresActive On
-ExpiresDefault "access"
-
+
+ ExpiresActive On
+ ExpiresDefault "access"
+
# cache text, css, and javascript files for one week
-Header set Cache-Control "max-age=1"
+
+ Header set Cache-Control "max-age=1"
+
diff --git a/combine.php b/combine.php
index 74d6cb319fd..e95ea229fed 100644
--- a/combine.php
+++ b/combine.php
@@ -149,7 +149,7 @@
if ($write_combined) {
if(!file_exists($combinedir)) {
- mkdir($combinedir, 0700);
+ @mkdir($combinedir, 0700) or die("Unable to create combine directory {$combinedir}. Please check permissions.");
}
$filename = '';
@@ -204,4 +204,4 @@
}
}
}
-
\ No newline at end of file
+