# mod\_rewrite and dynamic images problem

**URL:** https://forum.kirupa.com/t/mod-rewrite-and-dynamic-images-problem/242084
**Category:** programming
**Created:** [October 22, 2007, 8:43am UTC](https://forum.kirupa.com/t/mod-rewrite-and-dynamic-images-problem/242084 "2007-10-22T08:43:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lorren\_biffin](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/lorren_biffin/32/2726_2.png) [@lorren\_biffin](https://forum.kirupa.com/u/lorren_biffin)
#### Post date: [October 22, 2007, 8:43am UTC](https://forum.kirupa.com/t/mod-rewrite-and-dynamic-images-problem/242084/1 "2007-10-22T08:43:56Z")

</div>

So, here’s the issue:

I’m working on a site that has a mod\_rewrite setup for clean URLs, and a portion of the system that is dynamically generating thumbnails of larger images by way of the GD2 library. A sample thumbnail URL looks like “[http://sampleurl.com/img/thumb/imgname](http://sampleurl.com/img/thumb/imgname)”. What I want it to look like is “[http://sampleurl.com/img/thumb/imgname.jpg/.gif/.png](http://sampleurl.com/img/thumb/imgname.jpg/.gif/.png)”. Otherwise i’ll have to do a bunch of header testing and stuff that I just don’t wanna have to do, or remove the extension of every image that’s used with the app, which i also don’t wanna have to do.

Does anybody have a solution or link(s) to reading material?

I’m pretty tired so I won’t be surprised if any of you need more info. Just let me know 🙂 Thanks in advance!
