# Redirect /tc1 to the Drupal web directory
<IfModule mod_rewrite.c>
  RewriteEngine On

  # Ensure "web" folder is used for all /tc1 requests
  RewriteCond %{REQUEST_URI} ^/tc1(/.*)?$
  RewriteCond %{DOCUMENT_ROOT}/web%{REQUEST_URI} -f [OR]
  RewriteCond %{DOCUMENT_ROOT}/web%{REQUEST_URI} -d
  RewriteRule ^tc1(/.*)?$ web/tc1$1 [L,QSA]

  # If not found above, serve from /web directly
  RewriteCond %{REQUEST_URI} !^/web/
  RewriteRule ^(.*)$ web/$1 [L,QSA]
</IfModule>

# php -- BEGIN cPanel-generated handler, do not edit
# قم بتعيين الحزمة “ea-php81” “ كلغة البرمجة “PHP” الافتراضية.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php81 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
