asp.net rewritepath redirect HTTP header content-location exposed true path

Source: Internet
Author: User
Tags ranges

Asp. NET with RewritePath redirection, the HTTP headers of the server response are multiple content-location:

http/1.1 OK
content-length:48150
Content-type:image/jpeg
Content-location:http://www.111cn.net/test.jpg
Last-modified:tue, Dec 15:01:50 GMT
Accept-ranges:bytes
ETag: "E119ee9b30ddcd1:1c48"
server:microsoft-iis/6.0
X-powered-by:asp.net
Date:mon, Sep 2014 01:29:40 GMT

Content-location value redirect file for the true path, in some cases we do not want to let the client know the path, there is a way to remove it? Can't go away, but you can manually set an HTTP header with the same name to the Web site in IIS to hide the true path:


http/1.1 OK
content-length:48150
Content-type:image/jpeg
Content-location:mzwu.com
Last-modified:tue, Dec 15:01:50 GMT
Accept-ranges:bytes
ETag: "E119EE9B30DDCD1:1C58"
server:microsoft-iis/6.0
X-powered-by:asp.net
Date:mon, Sep 2014 01:42:50 GMT

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.