URL Rewrite rule for IIS to replace folder path in everypage

后端 未结 3 428
死守一世寂寞
死守一世寂寞 2021-02-04 13:08

We are having more than 300 pages in my website project. Over the time we have created a new server which is secure. This server is specially used for all the images in website.

3条回答
  •  无人共我
    2021-02-04 13:12

    umm some how you can do like this

    string imageUrl= Request.Url.Scheme + "://" + Request.Url.Authority + "/Image/logo/Logo.png";
    

    Scheme is your web Schemes http or https etc. Authority is your web domain name with port if any. Then here it goes your image url completely.

    I have used this logo url for the ssrs report service and got fine.Hope it ll work for you.

    Comments and queries are welcome . Thank you.

提交回复
热议问题