Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Eddie Foreman 215 posts 288 karma points
    Mar 17, 2011 @ 16:54
    Eddie Foreman
    0

    404 not working with new hosting provider

    Hi,

    Just moved over to a new hosting provider, where they use Plesk as the control panel.  On my previous hosting and locally I the custom  404 page is working OK. 

    On the new hosting (eHosting), I get a white page with 'The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.'. 

    The web config has:

    <customErrors mode="Off" />

    have also customErrors tried

    <customErrors mode="On">
    <error statusCode="404" redirect="404.aspx"></error>
    </customErrors>

    and

    <customErrors mode="Off" />

    The umbracoSettings is set with the id of the 404 page:

    <errors>
    <!-- the id of the page that should be shown if the page is not found -->
    <!-- <errorPage culture="default">1</errorPage>-->
    <!-- <errorPage culture="en-US">200</errorPage>-->
    <error404>1082</error404>
    </errors>

    From the Plesk control panel, the custom error page has been setup to point to 404.aspx

    Was wondering if anyone has the 404 working under Plesk?

    Thanks,

    Eddie

  • Eddie Foreman 215 posts 288 karma points
    Mar 17, 2011 @ 17:14
    Eddie Foreman
    2

    Hi All,

    Updated the system.Webserver to

    <system.webServer>
    <httpErrors existingResponse="PassThrough" />
    ...
    <system.webServer>

    and now have the 404 working for all .aspx pages.  But no joy with the other extensions (.png, php, .html etc...)

    Thanks,

    Eddie

  • Eddie Foreman 215 posts 288 karma points
    Mar 18, 2011 @ 12:26
    Eddie Foreman
    0

    Hi All,

    Manage to get the 404.aspx working for all file types. 

    Deleted

    <httpErrors existingResponse="PassThrough" />

    and updated the web.config to:

    <system.web>
      ...
        <customErrors mode="Off" />

    ...
    <system.web>
    <system.webServer>
    ...
    <httpErrors>
          <remove statusCode="404" subStatusCode="-1" />
          <error statusCode="404" prefixLanguageFilePath="" path="/404.aspx" responseMode="ExecuteURL" />
    </httpErrors>
    </system.webServer>

    If someone could relpy, so I can resolve the ticket that would be great.

    Thanks,

    Eddie

  • Lewis Smith 200 posts 587 karma points c-trib
    May 05, 2017 @ 20:26
    Lewis Smith
    0

    I'm coming across the same issue with my hosting, same situation. I havent found a fix for this yet, anyone come across anything?

Please Sign in or register to post replies

Write your reply to:

Draft