Responsive Images .htaccess

Permalink
Hi,

I hope someone can help me. I am having trouble integrating a responsive images javascript file with my concrete installation. It all works as a stand alone page but not through concrete.

I think it may be related to htaccess, I need to add this:
# 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

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


It just does not seem to want to work.

The script was downloaded here:
https://github.com/filamentgroup/Responsive-Images...

Grateful for any help you can give.

James

 
jordanlev replied on at Permalink Reply
jordanlev
What is rwd-router? Do you actually have that file installed somewhere? I could see that being a problem because the rewrite rules seem to assume that file exists in the same location regardless of what the requested page URL was. I doubt that any system utilizing rewrite rules is going to be able to plug into a CMS like Concrete5 without some modification.
chris123uk replied on at Permalink Reply
chris123uk
i use thishttp://adaptive-images.com/

it works with C5 and any other cms as it does not require you to update any of your <img> tags. its just a js include and a htaccess file.

no more having to load the resize option of designer content! :D
JohntheFish replied on at Permalink Reply
JohntheFish
Looks neat.

A well documented page with clear instructions. It could probably be built into a c5 addon that would automatically add the .htaccess code and script, make the php a c5 tool and keep the files under /files/cache/... .