

<IfModule mod_rewrite.c>
  RewriteEngine On

  # RFMS API routes
  RewriteCond %{REQUEST_URI} ^/api
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^api/(.*)$ api/index.php [QSA,L]

  # Shop API routes
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^shop-api(/.*)?$ shop-api.php [QSA,L]
</IfModule>

# M-Pesa sandbox credentials (replace with your Daraja app values)
# SetEnv MPESA_CONSUMER_KEY     your_sandbox_consumer_key
# SetEnv MPESA_CONSUMER_SECRET  your_sandbox_consumer_secret
# SetEnv MPESA_SHORTCODE        174379
# SetEnv MPESA_PASSKEY          bfb279f9aa9bdbcf158e97dd71a467cd2e0c893059b10f78e6b72ada1ed2c919
# SetEnv MPESA_CALLBACK_URL     https://ellyrabbitempire.skizagroundsuite.com/shop-api/payments/mpesa/callback
# SetEnv MPESA_ENV              sandbox

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