TYPO3: Page Not Found if behind Frontend Login - typo3

I have a TYPO3 10.4 with Frontend Login enabled. Subpages are behind a FE Login:
If i want to link to an subpage domain.com/page1/page1-1/page1-1-1/
I get an 404 Error:
Page Not Found
The page did not exist or was inaccessible. Reason: Subsection was found and not accessible
In my TypoScript I have:
config {
typolinkLinkAccessRestrictedPages = 2450
typolinkLinkAccessRestrictedPages_addParams = &return_url=###RETURN_URL###&pageId=###PAGE_ID###
}
According to the documentation about typolinkLinkAccessRestrictedPages
How can I setup my page to redirect to the login form with the right URL.

This configuration is only used when you generate links. This does not handle cases which directly access the URL.
https://github.com/plan2net/sierrha can help you with that.

Related

Is there a not documented instruction for Typo3 LMS/flogin plugin

Need a Login System on my Page but with integrated security Features ( like bruteforce login restriction)
downloaded this https://extensions.typo3.org/extension/flogin/
via composer on a freshly empty typo3 10.4.12 installation.
It appears in the Backend
I followed the documentation ->
https://docs.typo3.org/p/lms/login/9.0/en-us/Introduction/About/Index.html
Included the Static Typoscript in my Home / Root template
There lies the problem. The tutorial states add login form on expected page
->Tutorial Screenshot
But i checked everywhere but cant find that Login Form Element
Any Idea what iam missing?
Here is the answer directly from the Developer of this Extension
Thanks again very much!

TYPO3 No TypoScript template found - custom page

We're running TYPO3 9.5 with correctly set up Site Configuration. The main domain has multiple subdomains which have their own Site Configuration.
domain.com
sub1.domain.com
sub2.domain.com
sub3.domain.com
All these urls point to a different Site Configuration, which works fine. But when a user types sup1.domain.com instead of sub1.domain.com, "No TypoScript template found!" is shown. Within the Site Configuration "Error Handling", "Show content from page" is set up for error 503.
The configured error page is not showing, but the default "No TypoScript template found!". How could we show an actual TYPO3 page when a subdomain is entered wrong?
The 404 page works fine, but only with segments after the actual domain, eg. sub1.domain.com/does-not-exist shows the 404 page, as configured.
As already noted by Julian Hofman you should redirect all 'non-existend' subdomains to your main (sub) domain.
Sure, in this situation you cannot handle typos, but this solution is very fast and error-safe. TYPO3 can only handle "known" (sub)domains.
Redirecting all unknown subdomains can be done via .htaccess (on Apache) or your domain hosting admin-panel .
HTH Henrik

Access Denied from aweber redirect

One of my pages in my domain is set up as a redirect from aweber, so when I confirm on the link on an email optin from aweber it redirects to this page MyPage.html and includes a welcome message with the name I signed up with.
Now granted I am not sure if this is something to do with aweber set up for redirect although it's very easy to do (basically paste the URL in settings you want to redirect to) and I have double/triple checked it. I also contacted aweber support who said it can be the javascript for personalisation embedded in the Head section of the redirect page that can cause this error. I have removed this code and can confirm it is not the javascript or redirect causing it hence my appearance here.
I also have another portion of the site using this redirect and personalisation and it works fine.
Now when I click on the link in my email from aweber it gives me this error:
Forbidden
You don't have permission to access /mypage.html on this server.
Additionally, a 500 Internal Server Error error was encountered while trying to use an >ErrorDocument to handle the request.
And the redirect URL is below so I can see it is redirecting with my details ok but failing to give me access to the page.
mysite.com/mypage.html?email=myemail%40yahoo.co.uk&from=myemail%40yahoo.co.uk&meta_adtracking=my_web_site&meta_message=1001&name=MyName&unit=MyAweberListName&add_url=http%3A%2F%2Fwww.MySite.com%2FthankyouPage.html&add_notes=xx.xx.xx.xxx
All my pages have access permission 644 and the page is a copy of one of my other pages, which works fine, I've not added anything, changed anything, only removed text lines and graphics.
I just also tried remaking the landing page and it failed once more. Funnily enough though when I manually type the page into the URL bar up it comes; this worked before with the original page as well!
This works:
mysite.com/mypage.html
This [redirect] doesn't and gives the error described above
mysite.com/mypage.html?email=myemail%40yahoo.co.uk&from=myemail%40yahoo.co.uk&meta_adtracking=my_web_site&meta_message=1001&name=MyName&unit=MyAweberListName&add_url=http%3A%2F%2Fwww.MySite.com%2FthankyouPage.html&add_notes=xx.xx.xx.xxx
Any ideas on getting to the bottom of this would be greatly appreciated.
Host is hostgator

How to intercept error request and redirect to a custom page?

Here is one of the use-case as to what I want to do:
A User clicks on a blog-link or directly pastes the blog-link in the URL
The blog portlet is on the private-page of a Community (Site).
Since the user is not a member of the Community (Site) he would be taken to the error page.
He is shown, either a 404 page or a No-access error page.
My requirement starts: Now instead of showing the above pages or a customized version of the above pages.
I want to Intercept the request for 404 or other such requests.
And redirect to a portal page (not a static error page) based on some parameters of the User and the initial request parameters.
In this case I would want the user to be redirect to any public page of the same Community (Site) and ask him to Join or request membership for that Community (Site).
So in short I would want a way to intercept the request which generates the error and then redirect to where ever I want.
Is this available in liferay? If not can I get some idea as to how can I achieve this?
Environment: Liferay 6.1 GA2
Thanks for your valuable time.
Add a JSP page to manage 404 errors as described here in that Liferay's forum post.
In that JSP you can put your custom logic based on whatever param (the user, the community, etc..) that you can access from inside the JSP using, for example, the themeDisplay object.
An alternative way (and the way I have redirect 404 errors to a specific page in the community) is to override the 404.jsp with a Hook. Then add your custom logic to the overridden JSP.
I'm assuming something similar could be done for no-access.

AuthenticationHandler: sling always redirecting to gemotrix login page

I am implementing login functionality for my site using Custom AuthenticationHandler. When I give credentials and submit the form the AuthenticationHandler is always redirecting to geometrix site and asking geometrix credentials.
Even I tried deactivating geometrix in my author instance, after login into my site again it is redirecting to felix console site.
How to restrict other than my application pages ?
Any help is highly appreciable.
You can change your default login page from felix console
http://localhost:4503/system/console/configMgr
Configure Day CQ Login Selector Authentication Handler, set the default login page to the path of your custom login page
I guess the Day CQ Root Mapping servlet redirects you to it's configured rootmapping target.
Have at look at
/libs/cq/core/config.publish/com.day.cq.commons.servlets.RootMappingServlet
inside crxde.
The rootmapping servlet's config targets to /content.html which is resolved to /content. redirect that to your content or if it has to coexist, then create an additional JcrResourceResolverFactoryImpl config.
Just create a config.publish/org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl
node below your application in apps
/apps/<yourappp>/config.publish/org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl with jcr:primaryType sling:OsgiConfig and add a resource.resolver.mapping to your like the following samples demonstrates.
resource.resolver.mapping="[/-/,/content/intranet/-/intranet-/, ....]" />