Processing HTML Files with the ASP Engine on IIS March 23 2005
In order for your normal HTML files to allow ASP scripting, there is a little trick that allows you to process them with the ASP engine. This is especially useful for when you need to redirect static HTML pages with a proper 301 code which search engines basically demand.
1. Open IIS console
2. Properties (of the website in question)
3. Home directory tab
4. Configuration… button
5. Find the listing for .ASP files and copy down the field values (usually windows\system32\inetsrv\asp.dll)
6. Create a new listing for .HTML files and enter in the same values as the .ASP entry
7. Apply!
Now all your HTML files can process ASP code such as the famous 301 redirect:
< %
Response.Status = "301 Moved Permanently"
Response.addheader "Location", "http://www.mysite.com/mylocation/"
Response.End
%> >
- Posted in : General
- Author : site admin

Comments
Sorry comments are closed for this entry