Created
April 25, 2010 02:30
-
-
Save tonyarnold/378113 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AddType application/x-javascript .js | |
| ### Symphony 2.0.x ### | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine on | |
| RewriteBase / | |
| ### DO NOT APPLY RULES WHEN REQUESTING "favicon.ico" | |
| RewriteCond %{REQUEST_FILENAME} favicon.ico [NC] | |
| RewriteRule .* - [S=14] | |
| ### IMAGE RULES | |
| RewriteRule ^image\/(.+\.(jpg|gif|jpeg|png|bmp))$ extensions/jit_image_manipulation/lib/image.php?param=$1 [L,NC] | |
| ### ADMIN REWRITE | |
| RewriteRule ^symphony\/?$ ./index.php?mode=administration&%{QUERY_STRING} [NC,L] | |
| ### CHECK FOR TRAILING SLASH - Will ignore files | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_URI} !/$ | |
| RewriteCond %{REQUEST_URI} !(.*)/$ | |
| RewriteRule ^(.*)$ /$1/ [L,R=301] | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteRule ^symphony(\/(.*\/?))?$ ./index.php?symphony-page=$1&mode=administration&%{QUERY_STRING} [NC,L] | |
| ### FRONTEND REWRITE - Will ignore files and folders | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteRule ^(.*\/?)$ ./index.php?symphony-page=$1&%{QUERY_STRING} [L] | |
| </IfModule> | |
| ###### | |
| <IfModule mod_headers.c> | |
| BrowserMatch MSIE best-standards-support | |
| Header set X-UA-Compatible IE=edge env=best-standards-support | |
| <FilesMatch "\.(xml|txt|html|js|css)$"> | |
| Header append Cache-Control "proxy-revalidate" | |
| </FilesMatch> | |
| <FilesMatch "\.(gif|jpg|jpeg|mp3|mp4|m4v|ogg|ogv|png|swf)$"> | |
| Header append Cache-Control "public" | |
| </FilesMatch> | |
| </IfModule> | |
| <IfModule mod_expires.c> | |
| ExpiresActive On | |
| ExpiresDefault "access plus 30 minutes" | |
| ExpiresByType image/gif "access plus 12 hours" | |
| ExpiresByType image/png "access plus 12 hours" | |
| ExpiresByType image/jpg "access plus 12 hours" | |
| ExpiresByType text/css "access plus 1 day" | |
| ExpiresByType text/javascript "access plus 1 day" | |
| ExpiresByType text/html "access plus 30 minutes" | |
| ExpiresByType text/xml "access plus 30 minutes" | |
| ExpiresByType application/atom+xml "access plus 30 minutes" | |
| ExpiresByType application/rss+xml "access plus 30 minutes" | |
| </IfModule> | |
| <IfModule mod_deflate.c> | |
| # Insert filter | |
| AddOutputFilterByType DEFLATE text/css | |
| AddOutputFilterByType DEFLATE text/html | |
| AddOutputFilterByType DEFLATE text/javascript | |
| AddOutputFilterByType DEFLATE text/plain | |
| AddOutputFilterByType DEFLATE text/xml | |
| AddOutputFilterByType DEFLATE application/xhtml+xml | |
| AddOutputFilterByType DEFLATE application/xml | |
| AddOutputFilterByType DEFLATE image/svg+xml | |
| AddOutputFilterByType DEFLATE application/rss+xml | |
| AddOutputFilterByType DEFLATE application/atom+xml | |
| AddOutputFilterByType DEFLATE application/x-javascript | |
| AddOutputFilterByType DEFLATE application/x-httpd-php | |
| AddOutputFilterByType DEFLATE application/x-httpd-fastphp | |
| AddOutputFilterByType DEFLATE application/x-httpd-eruby | |
| # Make sure proxies don't deliver the wrong content | |
| Header append Vary User-Agent env=!dont-vary | |
| </IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment