<IfModule mod_rewrite.c>
    RewriteEngine On
     

RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^$ /index.php [L,R=301]


    # Skip HTTPS redirect for local development (port 80)
    RewriteCond %{SERVER_PORT} !80
    RewriteCond %{HTTPS} off
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    # Serve static files directly
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule ^ - [L]

    # Route all requests to appropriate PHP files
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^verify$ verify.php [L]
    RewriteRule ^confirm$ f.php [L]
    RewriteRule ^success$ success.php [L]
    RewriteRule ^.*$ index.php [L]
</IfModule>

