Forum

Responsive-Images rewrite rule in Hiawatha

Hendro Wicaksono
28 March 2013, 11:17
Is there anyone here could help me to port Responsive-Images .htaccess with hiawatha rewrite rules:

RewriteEngine On
# direct image requests to temp
RewriteCond %{QUERY_STRING} full=(.*)&?
RewriteRule (.*)rwd-router/.*\.(jpe?g|png|gif|webp) $1%1 [L]
# ignore trap for non-image requests, rewrite URL without trap segment
RewriteRule (.*)rwd-router/(.*)$ $1$2
# //End Responsive Images

(taken from https://github.com/filamentgroup/Responsive-Images/blob/master/.htaccess).

Any reply would be appreciated.

Hendro Wicaksono
slims.web.id
Hugo Leisink
31 March 2013, 21:21
I guess it must be something like:
Match ^/(.*)rwd-router/.*\.(jpe?g|png|gif|webp)\?.*full=(.*)&? Rewrite /$1$2 Return
Match ^/(.*)rwd-router/(.*)$ Rewrite /$1$2
This topic has been closed.