Getting the error after created this .htacces in root folder.
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/web
RewriteRule ^(.*)$ /web/
I want to redirect visitors to /web folder. I can login as Admin and enable modules, install themes and create content without any issues.
When a theme is installed, content created and publish it I get a blankpage with:
"Redirects to external URLs are not allowed by default, use \Drupal\Core\Routing\TrustedRedirectResponse for it."
I have trusted hostsettings configured like this in settings.php
$settings['trusted_host_patterns'] = array(
'^my-domain\.com$',
'^my-domain\.com\.web$',
'^.+\.my-domain\.com$',
'^.+\.my-domain\.com\.web$',
according to this issue uncomment RewriteBase /
didn't work out either
Hope someone has a solution to this.