Created
October 3, 2013 09:26
-
-
Save roboter/6807480 to your computer and use it in GitHub Desktop.
check if image in cache
This file contains 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
RewriteEngine on | |
#check if image is in cache | |
RewriteCond %{REQUEST_METHOD} ^GET$ | |
RewriteCond %{REQUEST_URI} ^/img/(.+)$ #just for images | |
RewriteCond %{DOCUMENT_ROOT}/cache/%{REQUEST_URI} -f | |
RewriteRule ^(.+)+$ cache/$1 [L,QSA] | |
# SLIM Framework | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^ index.php [QSA,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment