DirectoryIndex index.html index.php

Options -MultiViews
RewriteEngine On

# Already clean URL hai to kuch mat karo
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Clean URL → .html file
RewriteRule ^cart$           cart.html           [L]
RewriteRule ^checkout$       checkout.html       [L]
RewriteRule ^payment$        payment.html        [L]
RewriteRule ^order-success$  order-success.html  [L]
RewriteRule ^contact$        contact.html        [L]
RewriteRule ^privacy-policy$ privacy-policy.html [L]
RewriteRule ^refund-policy$  refund-policy.html  [L]
RewriteRule ^shipping-policy$ shipping-policy.html [L]
RewriteRule ^terms$          terms.html          [L]

# Agar koi .html extension se aaye to clean URL par redirect karo (Google Ads safe)
RewriteCond %{THE_REQUEST} ^[A-Z]+\ /([^.]+)\.html
RewriteRule ^(.+)\.html$ /$1 [R=301,L]

<FilesMatch "\.(jsonl|log)$">
  Require all denied
</FilesMatch>
