Jump to:

23471 Posts in 18941 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Problem at home page redirecting

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 643 Views
  • AkiRoss
    Avatar
    Community Member
    6 Posts

    Problem at home page redirecting Link to this post

    Hi everyone,

    I'm having a problem with redirecting home page.

    - I've configured that only registered users are allowed to access the website.

    - So, when I access with url like

    http://localhost/mysite

    ,

    It redirects to login page

    http://localhost/mysite/index.php/Security/login?BackURL=%2Fmysite%2F

    - After successful login, it's still showing same login page which is not redirecting to home page.

    - If I access with url like

    http://localhost/mysite/greetings

    , it'll working well and redirect to Greetings page.

    Something wrong with BackURL?? Any ideas would be appreciated!!

    Thanks!!

  • cuSSter
    Avatar
    Community Member
    56 Posts

    Re: Problem at home page redirecting Link to this post

    Hi AkiRoss,

    Try setting the default log in destination for your site. In your site's config file:

    Security::set_default_login_dest( 'greetings' );

    643 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.