I'm running a TYPO3 page with frontend user login.
If a user is not logged in and he clicks on a page that is only visible for logged in users at the moment I got 404 page.
How can I display the a different page then the 404 page?
Thanks in advance.
UPDATE Tried it this way
[PIDinRootline = 68] && [usergroup = *]
# do something
[else]
page.config >
page.config.additionalHeaders = Location: http://www.yourdomain.org/login.html
[end]
but then all pages redirects (run into else branch)
Update:
also tried:
[globalVar = TSFE:id=68] && [usergroup = *]
# do something
[else]
page.config >
page.config.additionalHeaders = Location: http://www.yourdomain.org/login.html
[end]
=> also not working
Thats the working solution:
[globalVar = TSFE:id =68] && [loginUser = ]
page.config >
page.config.additionalHeaders = Location: http://www.yourdomain.org/login.html
[end]