# QualiLearn cPanel Configuration
# Force HTTPS and handle PWA Manifest

RewriteEngine On

# Force HTTPS
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# Set MIME type for manifest.json
<IfModule mod_mime.c>
  AddType application/manifest+json .json
</IfModule>

# Caching for PWA assets
<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresDefault "access plus 1 month"
  ExpiresByType text/html "access plus 0 seconds"
  ExpiresByType application/manifest+json "access plus 0 seconds"
</IfModule>
