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.

General Questions /

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

Problem at home page redirecting


Reply


2 Posts   723 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' );