Code:
<IfModule mod_rewrite.c>
RewriteEngine On
<IfModule mod_headers.c>
RewriteRule ^(assets|bundles)/ - [ENV=CONTAO_ASSETS:true]
<FilesMatch "\.(gif|ico|jpeg|jpg|jpe|webp|png|css|js|ttf|ttc|otf|eot|woff2?|font)$">
Header set Cache-Control "max-age=31536000" env=CONTAO_ASSETS
</FilesMatch>
RewriteRule ^assets/tinymce4/js/skins/contao/fonts/ - [ENV=CONTAO_TINYMCE_SKIN:true]
Header set Access-Control-Allow-Origin "*" env=CONTAO_TINYMCE_SKIN
</IfModule>
RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
RewriteRule ^(.*) - [E=BASE:%1]
RewriteCond %{HTTP_HOST} !^immo-foto.info$
RewriteRule ^(.*)$ https://immo-foto.info/$1 [R=301,L]
RewriteCond %{HTTP:Authorization} .
RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^index\.php(?:/(.*)|$) %{ENV:BASE}/$1 [R=301,L]
RewriteRule ^(.*)\.html$ /$1 [L,R=301]
Redirect Gone /?trk=public_post-text
Redirect Gone /?trk=public_post_main-feed-card-text
Redirect Gone /?trk=organization_guest_main-feed-card-text
Redirect Gone /files/content/360grad/little-planet.jpg
Redirect Gone /files/content/360grad/equirectangular.jpg
ErrorDocument 404 /seite-nicht-gefunden-404
Redirect 301 /professionelle-immobilienfotografie /immobilienfotografie
Redirect 301 /bildoptimierung-immobilienfotos /bildoptimierung
Redirect 301 /webdesign /
Redirect 301 /test /
Redirect 301 /files/content/favicon.ico /files/luxe/img/icons/favicon.ico
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^ - [L]
# Rewrite all other queries to the front controller.
RewriteRule ^ %{ENV:BASE}/index.php [L]
</IfModule>
<IfModule !mod_rewrite.c>
<IfModule mod_alias.c>
# When mod_rewrite is not available, we instruct a temporary redirect of
# the start page to the front controller explicitly so that the website
# and the generated links can still be used.
RedirectMatch 302 ^/$ /index.php/
# RedirectTemp cannot be used instead
</IfModule>
</IfModule>