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.

  • Daniel Bardi 924 posts 2556 karma points
    Jun 11, 2010 @ 10:05
    Daniel Bardi
    0

    Handler to working

    I am still getting this:

    Server Error

    404 - File or directory not found.

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

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Jun 11, 2010 @ 11:28
    Stefan Kip
    0

    Come on, you don't really expect that I can do something about your problem with this amount of information? LOL

    Please give me information about your set-up :-)

  • Daniel Bardi 924 posts 2556 karma points
    Jun 11, 2010 @ 11:54
    Daniel Bardi
    0

    Sorry..

    IIS7 Integrated Pipeline
    asp.net 3.5  (umbraco 35 web.config)

    Got umbraco 404 redirect working by inserting <httpErrors existingResponse="PassThrough"/> inside <system.webServer>, but it is only working with .aspx files.

    301 redirect not is still not working.

    I'm trying to redirect old .htm, html, and .php files that no longer exist.

    Checked 404handlers.config and the handler is present.

    <?xml version="1.0" encoding="utf-8"?>
    <NotFoundHandlers>
      <notFound assembly="umbraco" type="SearchForAlias" />
      <notFound assembly="umbraco" type="SearchForTemplate" />
      <notFound assembly="umbraco" type="SearchForProfile" />
      <notFound assembly="InfoCaster.Umbraco._301UrlTracker" type="Handler301URLTracker" />
      <notFound assembly="umbraco" type="handle404" />
    </NotFoundHandlers>

    Verified that the assembly is in the bin.  OK

    Added new property to master document type using 301 Url Tracker datatype.

    Added custom mappings to current nodes using old url of .htm, html, and .php files.

    HELP!

  • Qube 74 posts 116 karma points
    Jun 17, 2010 @ 06:41
    Qube
    0

    I have a feeling you need to take a step back, and configure IIS to put all requests through the ASP.NET processor. That's the only way umbraco (and it's extensions) can handle non .aspx URLs.

    Google tells me you should check this out: http://learn.iis.net/page.aspx/508/wildcard-script-mapping-and-iis-7-integrated-pipeline/

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Jun 17, 2010 @ 21:52
    Stefan Kip
    0

    Jup, it's definately an IIS issue, not Umbraco or 301 URL Tracker related.

    You can see the request isn't even hitting Umbraco, because else Umbraco's 404 page would show up.
    If you configure IIS the correct way, the request should hit Umbraco and thereby hit the 301 URL Tracker.

  • Daniel Bardi 924 posts 2556 karma points
    Jun 21, 2010 @ 02:37
    Daniel Bardi
    0

    Thanks a bunch.. I'll verify that integrated pipeline is working.

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Jun 21, 2010 @ 21:28
    Stefan Kip
    0

    Daniel,

    If you've got it working, could you post here what you did? At least mark Ben's post as the answer if his suggestion helped you please :-)

    Thanks!

  • Thomas Ottosen 14 posts 34 karma points
    Jun 23, 2010 @ 11:54
    Thomas Ottosen
    0

    Hi,

    Having the same problem. Using integrated pipeline. It's working on my .aspx extensions but fail on folders and .asp etc.

    So need help on the System.web config.

    Thomas   

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Jun 23, 2010 @ 22:30
    Stefan Kip
    0

    Did you try the url Ben posted above?

  • Thomas Ottosen 14 posts 34 karma points
    Jun 23, 2010 @ 23:31
    Thomas Ottosen
    0

    Yes, I tried Bens link.

    Its working on .aspx and on folders but not with .asp, .php etc.  

     

  • Thomas Ottosen 14 posts 34 karma points
    Jun 23, 2010 @ 23:45
    Thomas Ottosen
    0

    Daniel talks about "Added custom mappings to current nodes using old url of .htm, html, and .php files" do I need to do this?

  • Thomas Ottosen 14 posts 34 karma points
    Jun 23, 2010 @ 23:51
    Thomas Ottosen
    0

    sry, forget my last post ;-) of course i need to map them 

  • Thomas Ottosen 14 posts 34 karma points
    Jun 25, 2010 @ 09:23
    Thomas Ottosen
    0

    ok, I got the iis working but need help with the httphandler

    My settings:    <add verb="GET, HEAD, POST, DEBUG" path="*.php" validate="false" type="???"/> so need help with the Type

    Thomas
             
        

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

    You do not have to add a HttpHandler...

    The request should hit ASP.NET/Umbraco and therefore hit the 301 URL Tracker...

    Could you try this:
    In the <system.webServer>/<handlers> add a handler.
    32 bit: Snippet

    <add name="Wildcard" path="*" verb="*" type="" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="Script" allowPathInfo="false" preCondition="classicMode,runtimeVersionv2.0,bitness32" responseBufferLimit="4194304" />

    64 bit: Snippet

    <add name="Wildcard" path="*" verb="*" type="" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="Script" allowPathInfo="false" preCondition="classicMode,runtimeVersionv2.0,bitness64" responseBufferLimit="4194304" />

    And tell me, is the app pool running in classic mode, or integrated pipeline?

  • Thomas Ottosen 14 posts 34 karma points
    Jun 25, 2010 @ 14:38
    Thomas Ottosen
    0

    I am Running IIS 6.... on prod. And think it's running in classicMode. My skills on IIS setup are very poor ;-)

  • Thomas Ottosen 14 posts 34 karma points
    Jun 25, 2010 @ 14:44
    Thomas Ottosen
    0

    It looks like I don't "reach" the handler 

    I made the extension in the application mapping to .php. Limit to: GET,HEAD,POST,DEBUG and Verify that files exsits = false

    Executable c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Jun 28, 2010 @ 03:42
    Stefan Kip
    0

    Thomas, did that do the trick or are you still looking for a solution?

    This post is about MVC, but is the same issue you're facing, maybe it'll help: http://blog.stevensanderson.com/2008/07/04/options-for-deploying-aspnet-mvc-to-iis-6/

  • Thomas Ottosen 14 posts 34 karma points
    Jun 28, 2010 @ 10:55
    Thomas Ottosen
    0

    OK, thx. for the link(and help).  I will look into it and keep you updated, for now I use the URLrewriter config file in Umbraco, but love the work you made. Great Package! My company will use it for sure, when it comes out of Beta. (And IIS setup are working)

    Let me know have we can contribute to the project.

    Thomas

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Jul 27, 2010 @ 21:39
    Stefan Kip
    0

    @Thomas

    Could you mark the most helpfull reply as 'The answer'? So this topic can be 'closed'? :-)

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Mar 19, 2011 @ 11:32
    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.

  • Simon Dingley 1431 posts 3332 karma points c-trib
    Feb 28, 2012 @ 09:48
    Simon Dingley
    0

    I have just run into this issue and needed to 301 Redirect some old HTML pages. I can confirm that the above solution of rewriting them to aspx file extensions works as intended, it doesn't feel right but it does work. Curious why the Umbraco requestModule would only explicitly handle .aspx or extensionless urls though?

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Feb 28, 2012 @ 09:55
    Stefan Kip
    0

    @Simon

    I'm not sure wether the umbraco requestModule has something to do with it. My guts tell me the cause is with IIS, which fires the staticFileHandler for html extensions, not the ISAPI module

  • 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