This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
HotlinkBlocker
 Helicon Tech : HotlinkBlocker
Subject Topic: Image Redirect Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Steve2507
Newbie
Newbie


Joined: 15 May 2007
Online Status: Offline
Posts: 23
Posted: 02 February 2010 at 7:37am | IP Logged Quote Steve2507

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 View Steve2507's Profile Search for other posts by Steve2507
 
Steve2507
Newbie
Newbie


Joined: 15 May 2007
Online Status: Offline
Posts: 23
Posted: 02 February 2010 at 7:40am | IP Logged Quote Steve2507

Sorry, entered in the wrong forum, just abut to move it.
Back to Top View Steve2507's Profile Search for other posts by Steve2507
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 02 February 2010 at 8:13am | IP Logged Quote Anton

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 View Anton's Profile Search for other posts by Anton
 
Steve2507
Newbie
Newbie


Joined: 15 May 2007
Online Status: Offline
Posts: 23
Posted: 02 February 2010 at 8:18am | IP Logged Quote Steve2507

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 View Steve2507's Profile Search for other posts by Steve2507
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 02 February 2010 at 8:52am | IP Logged Quote Anton

I've answered you in the correct forum.

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
Steve2507
Newbie
Newbie


Joined: 15 May 2007
Online Status: Offline
Posts: 23
Posted: 02 February 2010 at 8:56am | IP Logged Quote Steve2507

Thanks
Back to Top View Steve2507's Profile Search for other posts by Steve2507
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
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