When a client browser requests a web page, a server returns a response with a Hypertext Transfer Protocol (HTTP) header. HTTP response headers are name and value pairs that contain information about the requested page. These include the HTTP version, date, and content type.
You can create custom headers to pass special information in responses to browsers. For example, you could create a custom header named “authors” that might contain the names of content authors. Or you might create a Content-Language header to describe the natural languages used in the body of your web page, and provide several language-country/region. Custom HTTP headers also allow control of content expiration. For example, this header
Expires: Fri, 15 Nov 2015 19:30:00 GMT
will have the content expired at 19:30 GMT time.
- Go to HostPilot Control Panel > Web/FTP Server > Web Server > Settings and Permissions.
- Select htdocs directory
- Place one header per line in the HTTP Custom Header field and save changes when done. When creating a custom HTTP header, you should place a colon (:) between the header name and its value. The part before the colon is the name, and the part after the colon is its value.
- Open IIS Manager.
- In Features View, double-click HTTP Response Headers.
- On the HTTP Response Headers page, in the Actions pane, click Add.
- In the Add Custom HTTP Response Header dialog box, type a name, and a value or set of values separated with commas (,) in the Name and Value boxes.
- Click OK.