This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: Dynaimc Image Rule
Author
Message |
scott2loud
Newbie


Joined: 25 October 2011
Posts: 1
Posted: 25 October 2011 at 11:54am

I have been struggling with this for days now. We haveused ISAPI rewrite successfully for many years. I need to take what appears to be a static image URL and make it dynamic.

Example:

From:

http://www.domain.com/OH/2658/OHImage.jpg

Into:

http://www.domain.com/OH/OHImage.aspx?ID=2658

 

Can someone steer me in the correct direction? Thanks in advance,

Scott

Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 26 October 2011 at 5:03am

Hello,

Try using the following code:

Code:
RewriteEngine on
RewriteBase /

RewriteRule ^OH/(\d+)/([^./])\.jpg$ /OH/$2.aspx?ID=$1 [NC,L]


Regards
Andrew
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version