ErrorDocument 404 /c2c/wGlobal/content/errordocs/404.php

Options -Indexes

<IfModule mod_headers.c>
  <FilesMatch "\.(pdf|docx?|xlsx?|pptx?|swf|csv)$">
    Header append X-Robots-Tag "noarchive"
  </FilesMatch>
</IfModule>

Header set Accept-Ranges none
RequestHeader unset Range

RewriteEngine on
RewriteCond %{REQUEST_URI} \.(jpeg|jpg|gif|png|webp)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /weblication/grid5/scripts/wImage.php?action=showImageSizeNotYetAvailable [L]

RewriteCond %{REQUEST_URI} \.\w+$ [NC]
RewriteCond %{REQUEST_URI} !\.gif$ [NC]
RewriteCond %{REQUEST_URI} !\.jpg$ [NC]
RewriteCond %{REQUEST_URI} !\.jpeg$ [NC]
RewriteCond %{REQUEST_URI} !\.webp$ [NC]
RewriteCond %{REQUEST_URI} !\.png$ [NC]
RewriteCond %{REQUEST_URI} !\.swf$ [NC]
RewriteCond %{REQUEST_URI} !\.flv$ [NC]
RewriteCond %{REQUEST_URI} !\.avi$ [NC]
RewriteCond %{REQUEST_URI} !\.mov$ [NC]
RewriteCond %{REQUEST_URI} !\.wmv$ [NC]
RewriteCond %{REQUEST_URI} !\.mpg$ [NC]
RewriteCond %{REQUEST_URI} !\.mpeg$ [NC]
RewriteCond %{REQUEST_URI} !\.mp4$ [NC]
RewriteCond %{REQUEST_URI} !\.mp3$ [NC]
RewriteCond %{REQUEST_URI} !\.ogv$ [NC]
RewriteCond %{REQUEST_URI} !\.ogg$ [NC]
RewriteCond %{REQUEST_URI} !\.php$ [NC]
RewriteCond %{REQUEST_URI} !\.html$ [NC]

RewriteRule (.*) /c2c-wGlobal/wGlobal/scripts/accessDocument.php?document=/c2c/$1&display=1&%{QUERY_STRING} [L]

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php81” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php81 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
# come2canada.life API-Routing

RewriteBase /c2c/
RewriteRule ^api/klienten/?$   api/klienten.php  [QSA,L]
RewriteRule ^api/formulare/?$  api/formular.php  [QSA,L]
RewriteRule ^api/formular/?$   api/formular.php  [QSA,L]
RewriteRule ^api/analyse/?$    api/analyse.php   [QSA,L]
RewriteRule ^api/stories/?$    api/stories.php   [QSA,L]
RewriteRule ^api/auth/?$       api/auth.php      [QSA,L]
RewriteRule ^api/dashboard/?$  api/dashboard.php [QSA,L]
RewriteRule ^api/news/?$       api/news.php [QSA,L]

# config.php und bootstrap.php direkt blockieren
RewriteRule ^api/config\.php$    - [F,L]
RewriteRule ^api/bootstrap\.php$ - [F,L]