Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: data-attribute…
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (13 sloc) 0.551 kb
# Responsive Images
# Mobile-First images that scale responsively and responsibly
# Copyright 2010, Scott Jehl, Filament Group, Inc
# Dual licensed under the MIT or GPL Version 2 licenses.
# //Start Responsive Images
RewriteEngine On
# direct image requests to temp
RewriteRule .*rwd-router/.*\.r\.(jpe?g|png|gif)$ rwd-images/rwd.gif [L]
# ignore trap for non-image requests, rewrite URL without trap segment
RewriteRule (.*)rwd-router/(.*)$ $1$2
# remove .r from all requests
RewriteRule (.*)\.r(\.(jpe?g|png|gif))$ $1$2
# //End Responsive Images
Jump to Line
Something went wrong with that request. Please try again.