Forum Moderators: open

Message Too Old, No Replies

Parsing .html pages as .asp

         

nnowakow

5:33 am on Jan 15, 2005 (gmt 0)

10+ Year Member



I would like to display an RSS newsfeed on my site and would like to use server side scripting so that search engines may crawl it (as oppose to java script). I am only planning to put the RSS feeds on 6 pages of my site, including the main home page. To do this, I will be required to change the suffix of these 6 pages, including the main home page from ".html" to ".asp". I was going to do a 301 redirect, but I have been told that a Windows server can parse .html pages as .asp.

Does anyone know how this can be done?

CaseyRyan

9:38 pm on Jan 15, 2005 (gmt 0)

10+ Year Member



On a Windows 2000, 2003 webserver, to make files with .html extension be parsed with the same engine that does .asp files, you can do the following.
  1. On the webserver, go to the Interet Services Manager. (Usually under Administrative Tools, or you can go to Computer Management)
  2. Right click on the website you wish to change, click Properties.
  3. In the <website name> properties dialog, under the Home Directory tab, click the Configuration... button.
  4. In the Application Configuration dialog, under the App Mappings tab, click the Add button.
  5. In the Add/Edit Application Extension Mapping dialog, enter the following values:
    • Executable: C:\WINNT\system32\inetsrv\asp.dll *
    • Extension: .html
    • Verbs section, select Limit to: GET,HEAD,POST,TRACE
    • Script engine is checked
    • Check that file exists is not checked

  6. Click the OK, OK, OK

* note that if your windows directory is different, you will need to change it.

-=casey=-

nnowakow

11:17 pm on Jan 15, 2005 (gmt 0)

10+ Year Member



Thanks! Is there any downside to doing parsing .html files as .asp?

raptorix

4:12 pm on Jan 16, 2005 (gmt 0)

10+ Year Member



Well, the problem is that it will take a little bit longer to parse "static" html pages. But nowadays hardware is so much better as a few years ago, that it wouldn't be a big issue.

nnowakow

7:24 pm on Jan 16, 2005 (gmt 0)

10+ Year Member



Is there a way to do it so that I only parse the few html files that I want to act as "asp"?

ogletree

7:44 pm on Jan 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



That would slow them down. We are just saying if you did not have that on the .html pages they would run a little faster. The .asp pages would still take as long as they normaly do. I do it all the time it is not an issue. It works very well.