Prevent autodiscover calls

# Prevent autodiscover calls (they can cause heavy load issues)
RewriteRule ^autodiscover/autodiscover.xml$ - [F,L]
.htaccess

settings

max_execution_time=240
max_input_vars=1500

Set Document Root

RewriteEngine on
RewriteCond %{HTTP_HOST} ^container.mack-stage.de$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.container.mack-stage.de$
RewriteCond %{REQUEST_URI} !public/
RewriteRule (.*) /public/$1 [L]

Redirect to https and www

<IfModule mod_rewrite.c>
    RewriteCond %{HTTPS} off [OR]
    RewriteCond %{HTTP_HOST} !^www\. [NC]
    RewriteCond %{HTTP_HOST} ^(.*)$  [NC]
    RewriteRule (.*) www.%1/$1 [R=301,L]
</IfModule>
.htaccess