+1-888-365-2779
Try Now
More in this section

Forums / Set-up & Installation / Homepage redirects to login?

Homepage redirects to login?

4 posts, 0 answered
  1. Jules
    Jules avatar
    65 posts
    Registered:
    20 Jul 2005
    04 Oct 2008
    Link to this post
    I've been using Sitefinity for quite a while, and lately I keep running into this problem. I've solved it once but since I'm not working in my office (hurricane), I can't find the little piece of paper I scribbled the solution on.

    I have a simple public Sitefinity site, created from the BlankProject.zip. No special restricted pages. Anonymous users should be able to see it. The homepage is set. When you browse to the site and aren't logged on, you are automatically redirected to the Sitefinity login page.

    I feel like I've checked everything, but I must be missing something obvious. Ideas?
    Jules
  2. Joe
    Joe avatar
    138 posts
    Registered:
    24 Sep 2012
    06 Oct 2008
    Link to this post
    Hey Julia,

    Thanks for contacting us and I am sorry about the hurricane destroying your office.

    You must set the page's anonymous access property to deny, which will make the page redirect to the Sitefinity login page. Depending on the user's permissions, the user will be able to view or edit the page if possible. For more info on this feature, please read Users and Roles in our User Manual for more info.

    I hope that this solves your technical issue. Feel free to contact us if you need further assistance.


    Best wishes,
    Joe
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Jules
    Jules avatar
    65 posts
    Registered:
    20 Jul 2005
    06 Oct 2008
    Link to this post
    But I don't want the users to be redirected. I just want unauthenticated users to be able to browse the site, like any other website, and be unaware of Sitefinity.

    Here's the authentication line from my web.config:

        <authorization>
          <allow users="?" />
        </authorization>

    Jules
  4. Joe
    Joe avatar
    138 posts
    Registered:
    24 Sep 2012
    06 Oct 2008
    Link to this post
    Hello Julia,

    Thanks for the info.

    In this case, adjust the LoginURL property to the page where there should go. Here is a code sample:

    <authentication mode="Forms">
                <forms name=".ASPNET" loginUrl="~/MyCustomLoginPage.aspx" protection="All" timeout="1440" path="/"/>
            </authentication>
            <authorization>
                <allow users="?"/>
            </authorization>

    In this case, I made a page called MyCustomLoginPage.aspx in Sitefinity with a login box on it. When I visited a page where I had no access, I was redirected to that page. I hope that this solves our technical issue. Please let us know if you have any other questions.


    Best wishes,
    Joe
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
4 posts, 0 answered