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.

Data Model Questions /

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

auto redirect to login page


Go to End


2 Posts   1254 Views

Avatar
luuk

Community Member, 15 Posts

26 November 2014 at 7:48am

Hi,

i wan't to auto redirect to the login form when someone enters my site. i assume i use a director call in Page_Controller extends Contentcroller, but that trows an error. i tried the following: Director::redirect('/admin');

Could anyone help me?

Thanks in advance.

Avatar
swaiba

Forum Moderator, 1899 Posts

26 November 2014 at 11:10pm

This might provide you the guidance required... https://github.com/frankmullenger/silverstripe-underconstruction
you'll just need to change the redirection to error page to the login form instead.