shtml - forwarding extension to aspx

Discussion in 'ASP.NET / ASP.NET Core' started by newcents, Nov 26, 2007.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. We have a client who has links all over the internet pointing to shtml pages for their site. We are doing their hosting through discountasp.net. When we switched hosting all of the pages have been changed from shtml to aspx. Now shtml pages aren't recognized on discountasp.net...I get a 404 error when trying to view an shtml page (they are there, but the server doesn't recognize them). What do we do now? We have one angry client and discountasp.net support can't help.

    TIA
     
  2. Joseph Jun

    Joseph Jun DiscountASP.NET Staff

    What you can do is open up a ticket with the support department requesting to have the .shtml extension mapped to the ASPNET ISAPI instead of the SSI ISAPI and then you could probably redirect from there or perform a 301 redirect.

    If you need help with the 301 redirect, check the following post:

    community.discountasp.net/default.aspx?f=24&m=16758&g=16762

    Winston

    DiscountASP.NET
     
  3. Winston, they completed '.shtml extension mapped to the ASPNET ISAPI instead of the SSI
    ISAPI'.

    I have an shtml page with asp.net code and html code, but when I go to view it, it shows as blank?

    Any idea what's going on?

    TIA

    Post Edited (newcents) : 11/27/2007 12:09:59 AM GMT
     
  4. Joseph Jun

    Joseph Jun DiscountASP.NET Staff

    Not quite sure what's going on but could you just try putting some generic text in there such as fubar or hello world to see if regular text displays?

    Winston

    DiscountASP.NET
     
  5. Yeah I tried that too:

    That page only has the words TEST and nothing else.

    The weird thing is, you can enter any page with the extension of shtml, even one that doesn't exist:

    And the exact same thing happens every time, nothing is shown.

    Post Edited (newcents) : 11/27/2007 12:10:17 AM GMT
     
  6. Got it,

    I had to add this section to the web.config and it works:

    <compilation>

    <add extension='.shtml' type='System.Web.Compilation.PageBuildProvider' />
    </buildProviders>
    </compilation>
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page