Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Problem at home page redirecting


Go to End


2 Posts   2271 Views

Avatar
AkiRoss

Community Member, 6 Posts

7 November 2012 at 5:07pm

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!! :)

Avatar
cuSSter

Community Member, 56 Posts

21 February 2013 at 1:48am

Hi AkiRoss,

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

Security::set_default_login_dest( 'greetings' );