Copied to clipboard

Flag this post as spam?

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


  • Evan 40 posts 59 karma points
    Nov 26, 2010 @ 02:45
    Evan
    0

    Umbraco won't redirect to the Login.aspx page

    Hi,

    I've recently installed Umbraco, and to get into the login I have to URL:

    http://www.sitename.com/umbraco/login.aspx

    instead of simply:

    http://www.sitename.com/umbraco/

    Which returns a 404.

    This is a pain, becasue it's also causing bad urls not to redirect to the standard 404 page.

    Any ideas why? How do these redirects normally work?

    -Evan

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Nov 26, 2010 @ 03:04
    Aaron Powell
    0

    Do you have a default.aspx file in the /umbraco/ folder?

    Is your IIS configured to look for default.aspx as a default file?

  • Evan 40 posts 59 karma points
    Nov 26, 2010 @ 03:23
    Evan
    0

    Wow - extremely fast reply - thanks so much!

    So I actually have two sites (totally separate Umraco instances). One redirects as expected, the other doesn't.

    I can confirm that in both sites the /umbraco/ folder I does contain a Default.aspx file.

    I can also confirm that both sites list Default.aspx in the list of Default documents.

    So I don't think this is the issue.

    The site that works as expected, also has it's 404 redirects working correctly, so I think the two issues are linked.

    Thanks again for the fast reply Slace! Let me know if you have any other thoughts.

    -Evan

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Nov 26, 2010 @ 03:26
    Aaron Powell
    0

    if it's got a default.aspx i can't see why it would be having a problem, do you have any other default documents in IIS (default.html for example)? Can you try creating one of those and seeing if it's hit.

    Otherwise i don't have any ideas...

  • Evan 40 posts 59 karma points
    Nov 26, 2010 @ 04:50
    Evan
    0

    Cool thanks.I'll try that.

    Do you have any idea why the 404 page wouldn't get redirected to?

    Cheers!

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Nov 26, 2010 @ 04:57
    Aaron Powell
    0

    Because /umbraco/ is an ignored path (umbracoReservedPaths in the web.config) it'll not run through the Umbraco handlers and hence not use the Umbraco 404 handler

  • Evan 40 posts 59 karma points
    Nov 26, 2010 @ 07:01
    Evan
    0

    Hmmm.. this is very odd. Thanks for the help. I'll leave this question open and hopefully find out why neither my 404 redirects nor default documents for /umbraco/ work.

     

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Nov 26, 2010 @ 07:04
    Aaron Powell
    0

    The Umbraco 404 handlers wont work but if you use the standard ASP.Net 404 handler then it should work. That is the expected operation too.

  • Evan 40 posts 59 karma points
    Nov 28, 2010 @ 09:34
    Evan
    0

    So this is working now.

    The redirect to the Umbraco admin login page didn't work because I was missing the trialling slash off the URL (sitename.com/umrbaco rather than sitename.com/umbraco/), so thats sense. :)

    With the 404's I had to do two things:

    1) In the application pool switch the Managed pipeline mode to "classic"

    2) Add a Wildcard Script Map to C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll in IIS. Note that it's the 64 bit version.

    So yeah, thanks for the help Slace!

     

  • Evan 40 posts 59 karma points
    Nov 28, 2010 @ 12:04
    Evan
    0

    I'm actually not too happy about running the site is Classic mode... do you (or does anyone) know if this is neccessary? Or know of another fix?

  • waykoolgeek 2 posts 22 karma points
    Oct 13, 2011 @ 10:51
    waykoolgeek
    0

    It's a paradox but I believe that the login problem has a log out solution.

    Several times after having lauched my umbraco site with Webmatrix
    if I try to login using the following url, I just end up on a 404 page.

         http://localhost:12345/umbraco

    It's seems that this has something to do with the way one actually closed the internet
    navigator and webmatrix (and possibly move the directory where files are)
    without having first logged out from the admin panel.

    At least what worked for me is to actually log in mentionning
    the complete name of the login file, with the extension

         http://localhost:48979/umbraco/login.aspx

    After having logged in once this way. If I carefully log out using the logout_admin button
    on the admin panel and stopping the site within Webmatrix, then
    I'm again able to log in using the url mentionned before.

     

Please Sign in or register to post replies

Write your reply to:

Draft