Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

URL Rewrite and resource files getting 404

$
0
0

Hi,

I am trying to do URL Rewrite using ARR.  In a given site, I have 

site1.com and I have a site2.com.  When there is a request for site1.com/name I would like to redirect to site2.com/name/default.html.  I did all the required steps and finally configured URL Rewrite in web.config of site1.com, as follows

<rewrite>
<rules>
<rule name="Reverse Proxy to Original Site" stopProcessing="true">
<match url="^name" />
<action type="Rewrite" url="http://site2.com/name/default.html" />
</rule>
</rules>
</rewrite>

It works fine, except that when the site2.com loads, the images and JS references break and result in 404.

what would be the best practice to overcome this? Am i missing something?


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>