jkphl/squeezr/master/squeezr/.htaccess - Htaccess File

jkphl/squeezr/master/squeezr/.htaccess

#############################################################################################################
# Internal squeezr rewrite rules
# 
# You shouldn't need to change anything here (but the RewriteBase directory in case you don't apply the
# default setup for squeezr).
#
# @package    squeezr
# @author    Joschi Kuphal <joschi@kuphal.net>
# @copyright  Copyright © 2014 Joschi Kuphal <joschi@kuphal.net>, http://jkphl.is
# @link      http://squeezr.it
# @github    https://github.com/jkphl/squeezr
# @twitter    @squeezr
# @license    https://github.com/jkphl/squeezr/blob/master/LICENSE.txt MIT License
# @since    1.0b
# @version    1.0b
#############################################################################################################

# URL rewriting (required for squeezr to work) 
<IfModule mod_rewrite.c>

  # Start the rewrite engine
  RewriteEngine On
  RewriteBase /squeezr
#################       #####################################################################################
# Set this path    ^^^    appropriately in case you don't apply the default setup for squeezr. See the main
# .htaccess file respectively the common engine configuration SQUEEZR_ROOT/conf/common.php for details.
#############################################################################################################
  
  # Redirect non-existing image cache requests to squeezr
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-l [OR]
  RewriteCond %{QUERY_STRING} ^([^&]*&)*reset=file
  RewriteRule ^cache/(.*)-(d+px)(.(?:jpe?g|gif|png))$ index.php?engine=image&breakpoint=$2&source=$1$3 [NC,L]
  
  # Redirect non-existing css cache requests to squeezr
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-l [OR]
  RewriteCond %{QUERY_STRING} ^([^&]*&)*reset=file
  RewriteRule ^cache/(.*)-(d+xd+@d+(?:.d+)?).css$ index.php?engine=css&breakpoint=$2&source=$1.css [NC,L]
    
</IfModule>

On Github License

Files

Download PDF of Htaccess file
QUERY_STRING, REQUEST_FILENAME

Comments

Apache