This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
HotlinkBlocker (Forum Locked Forum Locked)
 Helicon Tech : HotlinkBlocker
Subject Topic: Image Redirect
Author
Message |
Steve2507
Newbie


Joined: 15 May 2007
Posts: 23
Posted: 02 February 2010 at 7:37am

I don't know if this is possible but here goes:

We have a number of sites which use the same images (products) and the images are all called the product code, e.g. AB123.jpg.

What I would like to do is change the way the image src is on each site so for site 1 it could be product-name-AB123.jpg and on site 2 it could be AB123-product-name.jpg. But the image shown is actually AB123.jpg.

Is this possible and if so how do I do it?

Thanks

Steve

Back to Top
 
Steve2507
Newbie


Joined: 15 May 2007
Posts: 23
Posted: 02 February 2010 at 7:40am

Sorry, entered in the wrong forum, just abut to move it.
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 02 February 2010 at 8:13am

Yes sure it's possible with ISAPI_Rewrite.
You may have different .htaccess files for different sites and have specific rules in each of them.

E.g.
.htaccess for site1 (requested URL - product-name-AB123.jpg):

RewriteBase /
RewriteRule ^product-name-([^-.]+)\.jpg$ $1.jpg [NC,L]

---------------------
.htaccess for site2 (requested URL - AB123-product-name.jpg):

RewriteBase /
RewriteRule ^([^-.]+)-product-name\.jpg$ $1.jpg [NC,L]

__________________
Regards,
Anton
Back to Top
 
Steve2507
Newbie


Joined: 15 May 2007
Posts: 23
Posted: 02 February 2010 at 8:18am

Thanks for the quick reply.

We don't have .htaccess files though, they are httpd.ini as we are using V2. Is that a problem?

Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 02 February 2010 at 8:52am

I've answered you in the correct forum.

__________________
Regards,
Anton
Back to Top
 
Steve2507
Newbie


Joined: 15 May 2007
Posts: 23
Posted: 02 February 2010 at 8:56am

Thanks
Back to Top
 

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

Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum