Skip to content

Instantly share code, notes, and snippets.

@t3easy
Created September 13, 2013 08:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save t3easy/6548125 to your computer and use it in GitHub Desktop.
Save t3easy/6548125 to your computer and use it in GitHub Desktop.
adaptive-images TYPO3
<IfModule mod_rewrite.c>
# Enable URL rewriting
RewriteEngine On
# Adaptive Images -----------------------------------------------------------------------------------
# Add any directories you wish to omit from the Adaptive-Images process on a new line, as follows:
RewriteCond %{REQUEST_URI} !^/ai-cache/
RewriteCond %{REQUEST_URI} !^/typo3/
# Send any GIF, JPG, or PNG request that IS NOT stored inside one of the above directories
# to adaptive-images.php so we can select appropriately sized versions
#RewriteRule \.(?:jpe?g|gif|png)$ clear.gif
RewriteRule \.(?:jpe?g|gif|png)$ adaptive-images.php
# END Adaptive Images -------------------------------------------------------------------------------
# Change this path, if your TYPO3 installation is located in a subdirectory of the website root.
RewriteBase /
...
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment