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.

  • Owen Hope 119 posts 140 karma points
    Dec 01, 2010 @ 19:38
    Owen Hope
    0

    Getting Started - 301 URL Tracker 1.2

    Hi,

    Using Umbraco 4.5.2

    I recently installed 301 URL Tracker as we have migrated an existing website to be managed by Umbraco. Quite a few of the URLS have changed but we would like them to redirect instead of 404'ing for obvious reasons.

    Having some problems setting up 301 URL Tracker and was hoping I could get some help from the community.

    Now I have done the following:

    • Installed 301 URL Tracker 1.2
    • Added the "301 Url Tracker" to my Content document type
    • Went to a node that needed to be updated and added the tracker
    Here's an example of a change that is needed.
    On the old site there is a URL called /register/ -- it now is /Registration.aspx.

    I went into the "Registration" node on the Umbraco installation and added /register as my Url and added the mapping, however whenever I click the shortlink the page is 404.
    Any help or assistance would be great. Looks like a fantastic package.
    Thanks,

    Owen

     

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Dec 01, 2010 @ 19:52
    Stefan Kip
    0

    Well, I'm getting more reports like yours lately (since version 1.2). I will look into this soon. Maybe this week, but I'm afraid it will be next week.

    I'll keep you posted.

    Edit: You know what? I'll look into this tonight :-)

  • Owen Hope 119 posts 140 karma points
    Dec 01, 2010 @ 19:53
    Owen Hope
    0

    Hi Kipusoep,

    Thanks for your support, I have notifications set to on in this thread.

    Owen

  • bob baty-barr 1180 posts 1294 karma points MVP
    Dec 01, 2010 @ 21:19
    bob baty-barr
    0

    owen... not related to 301, but did you know that you can, via a couple of settings, have extensionless urls with umbraco???

    like /register

    there is a post here that references the web.config update required...

    http://our.umbraco.org/forum/using/ui-questions/6515-Search-engine-friendly-URLs

    hope that helps

  • Owen Hope 119 posts 140 karma points
    Dec 01, 2010 @ 21:22
    Owen Hope
    0

    Hi Bob,

    Yes, I would usually use Directory URLs for this site, however my Client is using shared hosting account without a Dedicated Application Pool, so turning on Directory URL's is causing some problems.

    Thanks for your advice,

    Owen

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Dec 01, 2010 @ 21:38
    Stefan Kip
    0

    Could you post a screenshot of the 404 you're getting?

  • Owen Hope 119 posts 140 karma points
    Dec 01, 2010 @ 21:47
    Owen Hope
    0

    Hi,

     

    Here is the backend shot:

    And the 404:

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Dec 01, 2010 @ 21:50
    Stefan Kip
    0

    Seems like this is not a 301 URL Tracker issue.

    As you described above, you had problems getting Directory Url's to work. That issue is the same issue as you are experiencing with the 301 URL Tracker. Directory Url's aren't mapped to the ASP.NET ISAPI handler, so the 301 URL Tracker isn't even being called. I can tell this, because you would see umbraco's 404 page if the 301 URL Tracker kicked in and didn't find anything.

  • Owen Hope 119 posts 140 karma points
    Dec 01, 2010 @ 21:53
    Owen Hope
    0

    Hi,

    Ok I am going to try again on a different installation to see if I can get this working, I will post back in a few minutes for an update.

    Curious, does this package work if I don't have DirectoryURLS turned on?

    Thanks,


    Owen

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Dec 01, 2010 @ 21:57
    Stefan Kip
    0

    It always works, but the extension (or none) is the most important.
    As long as you have the extension (like .php or .cfm or none (directory url's)) mapped to the correct handler (which is the ASP.NET ISAPI handler), the 301 URL Tracker kicks in. If it does not, you will get a regular IIS 404 page.
    As stated above, you get an error page from IIS, so the request never made it to umbraco in the first place.

  • Owen Hope 119 posts 140 karma points
    Dec 01, 2010 @ 21:59
    Owen Hope
    0

    Hi!

    Success! I went and installed this on my live setup and it worked! There must be something wrong with development environment!

    Thanks again, and sorry for misleading you! 

    Owen!

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Dec 01, 2010 @ 22:01
    Stefan Kip
    0

    No problem, you just pushed me to write a big notice et the top of the package's description :-)
    There's nothing 'wrong' with the development environment, it's just not configured correctly for your needs ;-)

    Btw, could you mark this thread as solved? Thanks.

  • Owen Hope 119 posts 140 karma points
    Dec 02, 2010 @ 00:15
    Owen Hope
    0

    Haha I am glad that you have found useful information in my problem!

    I am currently implementing your package again into another site and once again having some problems. The file extension is .asp from the old site and in IIS i know where I select the executable but which one should I choose?

     

    Thanks again!

     

    Owen

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Dec 02, 2010 @ 00:21
    Stefan Kip
    0

    This sounds like it could be interesting to read for you...

  • Owen Hope 119 posts 140 karma points
    Dec 02, 2010 @ 00:54
    Owen Hope
    0

    I went ahead and changed the .asp handler to use aspnet_isapi.dll

    I also went and added the handler in the local web.config like so:

     

     <!-- ASP -->

          <add path="*.asp" verb="*" type="System.Web.UI.PageHandlerFactory" validate="true"/>

        </httpHandlers>

        <compilation defaultLanguage="c#" debug="false" batch="false">

          <buildProviders>

           <add extension=".asp" type="System.Web.Compilation.PageBuildProvider"/>

          </buildProviders>

     

    And now I have a different 404 page when I try /business_solutions.asp:

     

    Stumped!

     

    Thanks,


    Owen

     

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Dec 02, 2010 @ 15:17
    Stefan Kip
    0

    I'm not sure if the web.config changes are needed.
    The request is hitting ASP.NET now, but it's handled as classic asp page, which is not okay...
    Try playing with removing those web.config changes.

  • Owen Hope 119 posts 140 karma points
    Dec 02, 2010 @ 18:02
    Owen Hope
    0

    Hi,

    Removed the changes from the web.config and the 404 page went away, however it is now just replaced with plain blank white screen. No errors on the page.

    Feel like im getting closer! Any idea whats up?

    Thanks in advance,

    Owen

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Dec 02, 2010 @ 18:19
    Stefan Kip
    0

    You could use Firebug or Fiddler to inspect what HTTP Status code you're getting.
    Anyway, it's still not ok, but I can't help you any further. This is beyond ASP.NET and umbraco, it's really server configuration/IIS.

  • 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