TYPO3 - Redirecting to login page when user is not logged in

六月ゝ 毕业季﹏ 提交于 2019-11-29 04:13:49

That should work fine:

# Restricted area starts at pid 123.
# Check if user is logged in:
[PIDinRootline = 123] && [usergroup = *]
# do something
[else]
page.config >
page.config.additionalHeaders = Location: http://www.yourdomain.org/login.html
[end]

Found here

Just for reasons of documentation: make sure you choose the right redirect mode.

If I wish to redirect for a certain page after login, but only one specific user group should redirect to another page, then I choose two items for redirect and bring them to the right order. I choose them under page > Plugin > Redirect.

The order should be the way that the specific conditions are caught first.

This screenshot illustrates it:

This was tested for Typo3 6.1.3.

Hope that helps sb...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!