404 - no site configuration found

Hello,
I have copied my local DDEV installation to the server, imported the database and corrected the base-url.
The backend works perfect, but if I try to show my page I get an 404-error that says no site configuration found.
The site was working in DDEV…
I checked the /config/site/main/config.yaml → the pageID is correct, the base-url is correct.
I also checked that the url can be accessed with a file info.php. That worked.
I have no idea what to do now ?!?!?!

Typo3 13.4.12 - php 8.4

Did you try to clear all caches? That could be done either in the TYPO3 Install Tool => Maintenance or on the command line with ./vendor/bin/typo3 cache:flush.

Yes, I did :wink: In both ways.

Is your TYPO3_CONTEXT set properly? And how does your config.yaml look like exactly?

Is the DB on production the same content as locally, e.g. no difference in the “pages” and “sys_templates” tables?

Ich habe in meine .htaccess-Datei aufgenommen:
SetEnv TYPO3_CONTEXT Development

In Configuration Presets: Debug

Die config.yaml in sites/main ist:
base: ‘https://test.meineDomain.de/
dependencies:

  • typo3/fluid-styled-content
  • typo3/form
  • georgringer/news
  • georgringer/news-twb5
  • tpwd/ke_search
  • bst3/esf-sitepackage
    languages:
  • title: Deutsch
    enabled: true
    languageId: 0
    base: /
    locale: de_DE
    navigationTitle: Deutsch
    flag: de
    hreflang: de-DE
    websiteTitle: ESF
    rootPageId: 1
    routes:
  • route: robots.txt
    type: staticText
    content: “user-agent: *\r\nDisallow: /”
    websiteTitle: ESF

I cleared the database on the server and imported the one from local installation.
I’ve checked sys_templates, that’s similar. The BE works perfect.

A bit strange: I don’t get an error log.

(Let’s try to stay in english here if possible :slight_smile: )

Could you see if it maybe is somehow related to your dependencies? Just remove that key and see if a frontend request succeeds.

Do you have actual sys_template records that would be parsed on your page request?

Can you call https://test.meinedomain.de/index.php and receive some output?

I removed the dependencies - same result

*Do you have actual sys_template records that would be parsed on your page request?
You mean showing any other page than start-page from the BE?
If, yes - same result on other pages.

*Can you call https://test.meinedomain.de/index.php and receive some output?
No, same error

But I can call a file like https://test.meinedomain.de/info.php
So the domain link is functional.

Does your server maybe utilize varnish or some reverse proxy setup? Maybe the baseURL cannot be matched.

What does the info.php script report as “HTTP_HOST”?

Exactly
test.meineDomain.de
and
HTTPS = off ?

Problem solved.
My hoster has addad the SSL-certificate and removed the “/” at the end of the path.

1 Like