Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-06-11 10:54:37
- FireFusion
- Member
- Registered: 2005-05-10
- Posts: 698
Combining and compressing javascript and css files
I’m trying the method described here but it doesn’t seem to work with Textpattern’s Htaccess file no matter what order i put it in.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
#RewriteBase /relative/web/path/
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^css/(.*\.css) /combine.php?type=css&files=$1
RewriteRule ^js/(.*\.js) /combine.php?type=javascript&files=$1
RewriteRule ^(.*) index.php
RewriteCond %{HTTP:Authorization} !^$
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
Last edited by FireFusion (2009-06-11 11:07:02)
Offline
Re: Combining and compressing javascript and css files
Wow this looks really good. Especially for sites with fat css files and lots of js. LEt me know if you figure it out.
Dare I say, Plugin?
Offline
#3 2009-06-11 18:55:43
- FireFusion
- Member
- Registered: 2005-05-10
- Posts: 698
Re: Combining and compressing javascript and css files
I gave up on that version and am using this instead :)
Offline