i have the following page tree:
root (1)
Home (2)
firstpage (3)
secondpage (4)
etc. Home is my startpage, which i made to Root Page in Tab Behavior.
I defined a site for Home [ID:2] (Domain, language etc) but not for root (1). root is my container page for templates - this should become a multi domain setup.
But this setup seems not to work anymore. The site configuration demands a configuration for root [ID 1] and in the frontend I get a "page not found" error.
When i change my setup and define a site configuration for root [ID:1] instead of Home [ID:2] all works as expected. Is this approach with a root page for template inheritance not possible anymore in TYPO3 9? Or do i miss something?
Thanks!
It is true that site configuration can only be applied to a page on the root level.
Instead of inheriting templates, you can just include them where needed.
templates (5)
Home (2) (include template here from 5)
firstpage (3)
secondpage (4)
nextsite(6) (include template here from 5)
firstpage (7)
Related
I've updated TYPO3 from 8.x to 9.5.21 and the page is available like this http://example.com
But if I go back to the startpage it always appends /index/ and then the URI looks like this http://example.com/index/.
Does anybody know what the problem is?
Is your startpage the root page? You can check that in the page properties => Tab "Behaviour" => Use as Root Page
And you should check the URL Segment field in your page properties. If your start page is your root page, the field should be empty.
Another thing to check is the routing configuration in your site config. You can find it in config/sites/. Do you have a special setting in the routeEnhancers section?
I solved it. The problem was the default: / in the routeEnhancers.
routeEnhancers:
PageTypeSuffix:
type: PageType
default: /
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
I created Root page as a Home and it's displaying content.
When I create subpage with locations it's says not found. Find below screenshot.
Front page
Home Page (Working)
You seem to be missing the required .htaccess which should be created during installation (https://docs.typo3.org/m/typo3/guide-installation/master/en-us/In-depth/SystemRequirements/Index.html#apache).
Save this default configuration https://raw.githubusercontent.com/TYPO3/TYPO3.CMS/9.5/typo3/sysext/install/Resources/Private/FolderStructureTemplateFiles/root-htaccess to your <document root>/.htaccess.
Does anybody have sophisticated knowledge about running a multi-domain-site using a single typo3-instance ?
E.g. I have 2 domains, both being served by the same webserver, using different vhosts. What I want to achieve, is both vhosts pointing to the same document root, where a typo3-instance is installed. This TYPO3-instance should check by typoscript, which domain was used in the request and forward requests for each domain to a specific subpage ("landing page for that domain").
I need this to work in a productional & stable environment, due to custom-self-developed extensions, which provide necessary data for both installations, also specific extbase-domain-models should be usable in both domains etc.
I am already able to check the requested domain via typoscript-conditions. What I am missing, is some info, about how I could possibly realize the redirection, without the client being redirected to the landing page each time while using sub-pages of the landing-page. Do I need to set cookies for this !?
Thanks in advance, Oliver
In TYPO3, you can combine several sites (each with a different domain) in one Installation. This already works out of the box.
So, for this requirement
This TYPO3-instance should check by typoscript, which domain was used in the request and forward requests for each domain to a specific subpage
it is not necessary to add a check for TypoScript, TYPO3 will automatically resolve the URLs.
Page Tree:
pid=0
| --> root page 1
| --> root page 2
On both root pages, enter page properties : "Behaviour" checkmark enable "Use as Root page"
On both root pages, create a TypoScript template, edit it, got to tab "Options", checkmark "Rootlevel". Have this TypoScript template include your general TypoScript configuration, e.g. via "static includes" (ideally you put your TypoScript configuration in an extension)
Since TYPO3 9: configure a site for each page tree under "Site Management > Sites". Before TYPO3 9: On both root pages create a "Domain" record
I'm trying to copy a working TYPO3 page tree from one location to other. I can copy.. But while pasting only the first page is getting loaded, that is the root page.
I've increased the level of page copy settings in 'User Settings' Tab of the user. But still not working!! If anybody do have a clue.. Please share.
Using TYPO3 v7.6.15.