I'm having trouble with my multi site setup. The issue can be seen here

As you can see, the page sometimes gives a 404 and sometimes shows the page. Most of the times it's the 404, but sometimes the correct page. When I enable devMode on the staging it gives me "Template not found: safety-drone".

The general cfg for staging:

'staging' => [
    // Craft defined config settings
    'allowUpdates' => true,
    'backupOnUpdate' => false,
    'devMode' => false,
    'enableTemplateCaching' => true,
    'isSystemLive' => false,
    'siteUrl' => [
      'default' => 'https://staging.ncentric.com/',
      'citymeshEn' => 'https://staging.ncentric.com/en/',
      'citymeshFr' => 'https://staging.ncentric.com/fr/'

My .htaccess in /web:

<IfModule mod_rewrite.c>
RewriteEngine On

# Static file versioning
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.+)\.(\d+)\.(bmp|css|cur|gif|ico|jpe?g|js|png|svgz?|webp|webmanifest)$ $1.$3 [L]

# Send would-be 404 requests to Craft
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/(favicon\.ico|apple-touch-icon.*\.png)$ [NC]
RewriteRule (.+) index.php?p=$1 [QSA,L]

Does anyone have an idea what could be the cause of this? If you need more information, please ask and I'll provide.

Thanks in advance

edit: system is now available for you all to see :) my bad

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.