> Find & Replace?
I tested that and could not get it work. As I understand (unless I am
missing something here) HTTPContext.RewritePath can change the
"internal path" only such as http://www.oldsite.com/product1 to
http://www.oldsite.com/products.aspx?id=1. It cannot change it to
http://www.newsite.com/product1. Is there a way to change the URL
itself and not only the internal path?
I can use redirect but that gets tricky. When I tried it I got into a
loop as the redirection triggered the handler again and again. I might
be doing something wrong.
Do you have any idea how can do that?
Thanks
Moshe
George Ter-Saakov - 13 Aug 2007 21:26 GMT
The RewritePath only works within application. You can not rewrite path to
different URL than the one that is "belongs" to the application.
Hence you can not Rewrite it to different domain name. Response.Redirect
should work just fine.
Why do you redirect to the http://www.newsite.com/product1
Your newsite.com should do the Rewrite to /products.aspx?id=1
George.
>> Find & Replace?
>>
[quoted text clipped - 10 lines]
> Thanks
> Moshe
Scott M. - 14 Aug 2007 17:49 GMT
>> Find & Replace?
>>
[quoted text clipped - 10 lines]
> Thanks
> Moshe
I say again... Find & Replace?