Copied to clipboard

Flag this post as spam?

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


This forum does not allow new topics to be created, please use the v2 forum from now on.

  • Richard van der Meel 13 posts 76 karma points
    Dec 07, 2010 @ 08:39
    Richard van der Meel
    0

    v1.3: 404 on classic ASP pages (v1.3: Classic asp handle causes 404 (urlRewriting.config does work with same setting)

    Hi Stefan,

    I just installed v1.3. and added a custom mapping for: /test/myniceoldpage.asp

    I'm getting a 404 as below during the request.

     

    HTTP Error 404.0 - Not Found

    The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

     

    If i manually add a rule to the urlRewriting.config it is properly handled, so umbraco does handle the request

    Any idea?

  • Rich Green 2246 posts 4006 karma points
    Dec 07, 2010 @ 09:03
    Rich Green
    0

    Hi Richard,

    Did you add /test/ to this line in the web.config file?

     <add key="umbracoReservedPaths" value="~/umbraco,~/install/" />

    Rich

  • Richard van der Meel 13 posts 76 karma points
    Dec 07, 2010 @ 09:08
    Richard van der Meel
    0

    Hi Rich,

    This should not be necessary. That would mean you need to set up a reserved path for each 301 rewrite.

    Am i missing something?

  • Rich Green 2246 posts 4006 karma points
    Dec 07, 2010 @ 09:10
    Rich Green
    0

    Sorry, didn't see this was under the 301 URL tracker project, ignore me!!

    Rich

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Dec 07, 2010 @ 10:51
    Stefan Kip
    0

    Nope, umbraco is not handling the request...

    The UrlRewriting.NET get's hit, but that doesn't mean umbraco also get's hit.
    The only way you can see umbraco get's hit, is if the umbraco not found page is shown (intentionally left ugly bla bla...)

  • Kim Hansen 63 posts 144 karma points
    Dec 08, 2010 @ 11:00
    Kim Hansen
    0

    I got the same error.

    Directories and .aspx works fine.

    Adding the .asp handler adds this to the web.config.

    <add name="ASPClassic" path="*.asp" verb="GET,HEAD,POST" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="File" requireAccess="Script" />

    Im running a IIS 7, Umbraco 4.5.2 and .NET 4

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Dec 08, 2010 @ 11:03
    Stefan Kip
    0

    I can't help with this... This is related to configuring IIS the right way, and has nothing to do with umbraco nor the 301 URL Tracker.

  • Kim Hansen 63 posts 144 karma points
    Dec 08, 2010 @ 11:38
    Kim Hansen
    0

    Stefan, sorry about that. I thought you were an all-knowing oracle ;)

    Richard, did you find a solution?

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Dec 08, 2010 @ 11:53
    Stefan Kip
    0

    No problem, but you were wrong ;-)

  • Owen Hope 119 posts 140 karma points
    Dec 08, 2010 @ 20:38
    Owen Hope
    0

    I had this exact same problem last week, had to resort to manually adding them to UrlRewriting.config.

  • Daniel Bardi 924 posts 2556 karma points
    Jan 07, 2011 @ 20:53
    Daniel Bardi
    0

    Trying to redirect old .php urls to the new umbraco pages.

    I know .php is handled by asp.net due to the error page when I goto an old .php url.

    I have the old url mapped to the new page.

    Here is my error:

    Error Summary

    HTTP Error 404.0 - Not Found

    The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

  • Niels Henriksen 13 posts 25 karma points
    Jan 07, 2011 @ 22:11
    Niels Henriksen
    0

    You need to change the error page in IIS to point to a .aspx file. This is how I did and it capture all kind of files

  • Daniel Bardi 924 posts 2556 karma points
    Jan 07, 2011 @ 22:22
    Daniel Bardi
    0

    I did that... customErrors is set to "On" and the error page is an aspx page.

  • Niels Henriksen 13 posts 25 karma points
    Jan 07, 2011 @ 22:30
    Niels Henriksen
    0

    AND change the errorpage in IIS <- you need to do that also - or do this: http://our.umbraco.org/wiki/recommendations/recommended-reading-for-web-developers/urlrewriting-html-to-aspx

  • Kim Hansen 63 posts 144 karma points
    Feb 06, 2011 @ 11:15
    Kim Hansen
    0

    Did any of you get this working?

    If you did, can i please see your web.config?

    Ive been trying and trying with no luck.

    Thanks

    /Kim

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Mar 19, 2011 @ 11:29
    Stefan Kip
    1

    Doug Mackay had a great suggestion in another topic, will work with .asp too I think:

    I've been investigating the issue of getting it to work with .php/.cfm pages :-

    I belive that the umbraco 404 handlers only work with .aspx or extensionless url's (this is hard coded into the umbraco requestModule).

    As a workaround you can set-up the UrlRewritter to rewrite .php requests to a .aspx page that does't exist :-

    <add name="phprewrite"
         
    virtualUrl="^~/(.*).php"
         
    rewriteUrlParameter="ExcludeFromClientQueryString"                
         
    destinationUrl="~/php/$1.aspx"
         
    ignoreCase="true" />

    This then enables you to use the custom mapping in the 301 URL Tracker

    e.g.

    Custom mappings :-

    /php/oldpage.aspx

    /php/olddir/oldpage.aspx

    So /oldpage.php or /olddir/oldpage.php will get 301 redirected to the umbraco page that you've set the custom mapping on.

  • Kalle Ekstrand 181 posts 259 karma points c-trib
    Mar 29, 2011 @ 13:19
    Kalle Ekstrand
    0

    I have the same problem, does anyone have a clue how to get Umbraco to handle this? I have tried everything in IIS7 but I cant ssem to get it to pass it to Umbraco.

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Mar 29, 2011 @ 14:29
    Stefan Kip
    0

    @Kalle

    Didn't you see my post above yours?

  • Kalle Ekstrand 181 posts 259 karma points c-trib
    Mar 29, 2011 @ 14:36
  • Kalle Ekstrand 181 posts 259 karma points c-trib
    Mar 29, 2011 @ 14:38
    Kalle Ekstrand
    0

    But I would really like to have documentation on how to config IIS7 to handle mappings in the right way.

    Then I would have saved about 2 hours of research.

    Thanks!

    //Kalle

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Mar 29, 2011 @ 14:40
    Stefan Kip
    0

    Well, you'd have to find it yourself... I already searched the web for it multiple times, but in the end it didn't work for me.

    But if you do and find a solution, let us know!

  • Kalle Ekstrand 181 posts 259 karma points c-trib
    Sep 22, 2011 @ 11:15
    Kalle Ekstrand
    0

    I just wrote a blog-post on how we do it here: http://blog.toxic.se/blog/2011/september/using-301-url-tracker/

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies