Hi!

Currently when I hover the mouse over an image served by imagecache, the path looks something like this:
http://domain.com/sites/default/files/imagecache/reg/photos/DSC_7681.JPG
I would like to make this URL more "pretty", something like http://domain.com/images/large/DSC_7681.JPG

Is this possible using mod_rewrite and the .htaccess file?

Thanks in advance for any help!

Bence

Comments

Mike_Waters’s picture

I am also interested in this. It could be done using mod_rewrite, but that would likely be a configuration nightmare. Or perhaps custom_url_rewrite_outbound/inbound with some rules (e.g. 'rewrite all jpg paths to /') or a db table of 1-to-1 url mappings (e.g. 'sites/all/thumbnail/bence.jpg --> /bence.jpg').

drewish’s picture

Category: feature » support
Status: Active » Fixed

i think Mike_Waters has the general idea here. Use custom_url_rewrite_outbound() to create shorter URLs then use mod_rewrite to expand them back out.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.