简体   繁体   中英

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM