Forum Moderators: open

Message Too Old, No Replies

Running aspx code inside a .htm extension

how to do this

         

Aberdeen

4:21 pm on May 4, 2004 (gmt 0)

10+ Year Member



I want to run aspx code in a .htm page so i don't loose page rank etc. I have tried using this method:

Under IIS, right-click on "Default Web Site", click Properties, select the "Home Directory" tab and then click the "Configuration" button. Now add in an entry under "App Mappings" for ".html" and ".htm" and anything else you need. You can use the same executable path and verbs as set for the ASP extension.

This works fine for asp code, but when i use the method for aspx using the aspnet_isapi.dll, it does not work. I don't see why this method should not work.

Can anyone offer some help?

tomasz

11:53 am on May 5, 2004 (gmt 0)

10+ Year Member



What are you trying to do?

do want to rewrite your aspx to html?

here is good article on how to

[codeproject.com...]

TheNige

6:42 pm on May 5, 2004 (gmt 0)

10+ Year Member



I believe that the handlers for the file extensions are in the Machine.config file. You can put in what ASP.Net runtime is supposed to handle there.

Aberdeen

9:23 pm on May 5, 2004 (gmt 0)

10+ Year Member



Hi,

I am not trying to re-write the url as I want the url's to remain the same. I simply want to run things from a database inside the .htm pages. I read the artical and the bit at the end about the need to change IIS to pass all requests through to the ASP.NET ISAPI extension, is what I had been trying to do (except just the .htm request). But it did not work.

Where is the machine.config file?

Xoc

1:22 am on May 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



\winnt\microsoft.net\framework\vx.****\config