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: Rule For a folder on a different server
Author
Message |
Aid.roman
Newbie


Joined: 26 January 2009
Posts: 2
Posted: 19 October 2011 at 3:55am

Hi ,

Can someone please tell me whether I can use isapi rewrite 3 can rewrite a folder to another server?

I need any requests for images in the subdomain folder to redirect and request it from the other site?

http://subdomain.site.co.uk/PImages/SKU/SKUimages.jpg

To:

http://www.site.co.uk/content/ebiz/xt/invt/SKU/SKUimages.jpg

Where SKU is a variable

If so can you please provide the rule for this,

Many Thanks in advance,

Adrian
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 19 October 2011 at 4:14am

Hello, Adrian

Yes, sure it's possible. Please try to put the following lines into the .htaccess in the root of subdomain.site.co.uk:

RewriteBase /
RewriteRule ^PImages/SKU/(.*)$ http\://www.site.co.uk/content/ebiz/xt/invt/SKU/$1 [NC,P]

__________________
Regards,
Anton
Back to Top
 
Aid.roman
Newbie


Joined: 26 January 2009
Posts: 2
Posted: 19 October 2011 at 4:28am

Hi Anton,

Many thanks for the quick response,

I have tried it however it doesn't seem to work,

Just to clarify 'SKU' is a variable and is not a physical folder

Here are some examples:
http://subdomain.site.co.uk/PImages/3444/3444images.jpg

To:

http://www.site.co.uk/content/ebiz/xt/invt/3444/3444images.jpg

----------------------------------------------------------------

http://subdomain.site.co.uk/PImages/8573/8573images.jpg

To:

http://www.site.co.uk/content/ebiz/xt/invt/8573/8573images.jpg

Hope that makes sense,

Best eragrds,

Adrian

Back to Top
 

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

Printable version Printable version