Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -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
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^themes/([a-zA-Z\-\_\0-9]+)\/$ combine.php?type=css&theme=$1
RewriteRule ^js/all combine.php?type=javascript
</IfModule>

# Turn on Expires and set default to 0
ExpiresActive On
ExpiresDefault "access"

<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access"
</IfModule>

# cache text, css, and javascript files for one week
<FilesMatch ".(html|png|jpg|gif|js|css)$">
Header set Cache-Control "max-age=1"
<IfModule mod_headers.c>
Header set Cache-Control "max-age=1"
</IfModule>
</FilesMatch>
4 changes: 2 additions & 2 deletions combine.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
Expand Down Expand Up @@ -204,4 +204,4 @@
}
}
}