This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Common Questions (Forum Locked Forum Locked)
 Helicon Tech : Common Questions
Subject Topic: Rewriting image urls
Author
Message |
kkraemer
Newbie


Joined: 24 July 2009
Posts: 4
Posted: 24 July 2009 at 8:09am

Hi.

We are are in the process of moving a lot of image and video content from our local server to a CDN (such as Akamai or Limelight) and need a way to rewrite those links to point to the URL on the CDN. 

Example: original link: http://www.mysite.com/images/img1.gif should be rewritten on output to http://mysite.limelight.com/img1.gif

I have used Linkfreeze in the past to rewrite content on the way back out to the client and it works great but I don't know if it has a scheme that would support the scenario above.

Is either ISAPI Rewrite or LinkFreeze able to do that?

thanks.

Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 24 July 2009 at 8:22am

That's the job for ISAPI_Rewrite.
So you want to request http://mysite.limelight.com/img1.gif and internally take the content to show from http://www.mysite.com/images/img1.gif, right?

Please try to use the following rules for that:

RewriteBase /
RewriteRule ^(.+)$ http://www.mysite.com/images/$1 [NC,P]

__________________
Regards,
Anton
Back to Top
 
kkraemer
Newbie


Joined: 24 July 2009
Posts: 4
Posted: 24 July 2009 at 8:51am

Hi Anton.

Thanks for the quick reply.  It's not quite like that.  I have links in my content pointing to local images on the site(http://www.mysite.com/images/img1.gif) that I want rewritten to CDN hosted images (http://mysite.limelight.com/img1.gif) on the way back out to the browser.  I am thinking of how LinkFreeze will make changes to links on the way out to the browser.  When the link is displayed on the browser it should directly point to the CDN hosted image.

thanks.

Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 24 July 2009 at 9:14am

Ok, thanks for explanation.
And let me clarify once again - what is the URL you want to request and see in the address bar (is it http://mysite.limelight.com/img1.gif?),
and what is the real location of the images (it's http://www.mysite.com/images/img1.gif I suppose).

Please notice that ISAPI_Rewrite is not capable of changing links on pages.

__________________
Regards,
Anton
Back to Top
 
kkraemer
Newbie


Joined: 24 July 2009
Posts: 4
Posted: 24 July 2009 at 9:22am

ok. It sounds like ISAPI_Rewrite will not do what I need. 

The url I want to see in the address bar is: http://mysite.limelight.com/img1.gif

The NEW real location of the image is the same: http://mysite.limelight.com/img1.gif

The problem is that the links in my content are pointing to the OLD location: http://www.mysite.com/images/img1.gif

I was looking for something that would look through my content and dynamically fix any of these links on the way out to the browser, replacing the OLD link with the NEW link.  I know that LinkFreeze looks for URL patterns in the content and will do this.  There is no way for to give LinkFreeze a custom pattern like that?

thanks.

Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 27 July 2009 at 4:07am

Unfortunately. LinkFreezee is not capable of dealing with such tasks.
But in the nearest future we are releasing the new build of Helicon Ape product that will include
mod_replace module that is capable of changing the content of the page.

__________________
Regards,
Anton
Back to Top
 
kkraemer
Newbie


Joined: 24 July 2009
Posts: 4
Posted: 27 July 2009 at 8:45am

That's great to hear about APE.  That sounds like what I need.  Do you have an estimate of when that new version will be available?

thanks.

Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 28 July 2009 at 1:42am

I guess the new build will be available within a week. I'll inform you of that.

__________________
Regards,
Anton
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 13 November 2009 at 9:22am

I'm awfully sorry to make you wait for so long. My fault is that I've lost your ticket for a while.
If you are still with us and waiting for good news, here they are.
We've not only released a new build of Helicon Ape, we've released a new version. It's Helicon Ape 3.0.0.29 now!
It has encountered a little redesign and has got some new features, including the one we were talking about with you.
mod_replace module is implemented and you can try it now.

Once again I'm sorry for making you wait...

__________________
Regards,
Anton
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