Forum Moderators: open

Message Too Old, No Replies

rename asp files to html after the are handled by IIS

rename asp to html IIS

         

Clauss

1:57 pm on Oct 25, 2002 (gmt 0)

10+ Year Member



I have a site where I now have gotten rid of all the "?" so the SE better likes my pages.
All my files end on .asp
Is there a way for me to get the SE to see my asp files as html? I have heard something about a filter that I could install on the IIS. Is there not a way to code my way out of it in asp?

Kind regards!
Claus

Dreamquick

2:03 pm on Oct 25, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



My 2c - SE's shouldn't really care what the page extension is, as long as it looks like they expect a url to look like and it has content they can handle they should be fine.

If you really want to treat .htm as .asp then it's quite easy to set up really - although you will need access to the IIS admin console (these instructions are for 5.0) or similar web-based hosting control;

1) access the website properties
2) choose the home directory tab
3) click the configuration button
4) examine the entry for .asp
5) add a new type called .htm, copying the setup from .asp

Once you okay your way out of the dialogs you should now find that .htm files are treated the same way as .asp files are.

- Tony

Clauss

2:48 pm on Oct 25, 2002 (gmt 0)

10+ Year Member



Hi Tony!

Thanx for you reply!

I do have the server available here so I can configure it. I have two questions to your idea:

- If I make the change on the server it will only be for this partiqular website and not general for the sites on the IIS? Because I have several sites on this server.

- When you suggest that I do all this, I assume what happens is that when the server sees an htm file it looks in it's typeregister and treats the htm file as if it was an asp file. So the htm or asp is really just a name that covers over some certain functions connected to it. Am I not right?

Thanx Tony!
Claus