Permalink
Browse files

trying to remove 500 on images on heroku

  • Loading branch information...
1 parent 4ce162e commit dfe21708a42880d33e38a9391f8c1f15ff49aa5c @ptarjan committed Jul 17, 2011
Showing with 16 additions and 9 deletions.
  1. +7 −5 .htaccess
  2. +9 −4 favicons/.htaccess
View
@@ -1,7 +1,9 @@
-RewriteEngine On
+<IfModule mod_rewrite.c>
+ RewriteEngine On
-RewriteRule ^resume/?$ /resume.html [NC,L]
-RewriteRule ^cv/?$ /resume [R=302,NC,L]
+ RewriteRule ^resume/?$ /resume.html [NC,L]
+ RewriteRule ^cv/?$ /resume [R=302,NC,L]
-RewriteCond %{REQUEST_FILENAME}.php -f
-RewriteRule ^(.*)$ $1.php
+ RewriteCond %{REQUEST_FILENAME}.php -f
+ RewriteRule ^(.*)$ $1.php
+</IfModule>
View
@@ -1,4 +1,9 @@
-ExpiresActive On
-# 1 WEEK
-ExpiresDefault A604800
-Header append Cache-Control "public"
+<IfModule mod_expires.c>
+ ExpiresActive On
+ # 1 WEEK
+ ExpiresDefault A604800
+</IfModule>
+
+<IfModule mod_headers.c>
+ Header append Cache-Control "public"
+</IfModule>

0 comments on commit dfe2170

Please sign in to comment.