rewrite images

Jan 25, 2010 at 12:17 PM

Someone can give me an example for resolve a seo url for images...
my URL is like "/my-products-is-better~IMG1247" and i want resolve into one like "/Upload/1247.jpg"

For first url I must use an extension like GIF or JPG?

Must be first roles? ? 'Cause seemd not working

RewriteRule ^/.+~IMG([0-9]+)$                            /Upload/$1\.jpg                       [I]

RewriteRule ^/Products\.asp\?ID=([0-9]+)$           /SeoRedirect.asp?ID=$1            [I,L]

Thanks Alen



Jan 25, 2010 at 11:25 PM

seems like the right rule to me.  What results do you see? what does the log file show?