# Enable mod_rewrite
RewriteEngine On

# Redirect HTTP to HTTPS for the domain bicnv-sa
RewriteCond %{HTTP_HOST} ^bicnv-sa\.com$ [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://bicnv-sa.com/$1 [R=301,L]

# Hide .php extension and handle PHP files correctly
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([a-zA-Z0-9_-]+)$ $1.php [L,QSA]

# <Limit GET POST>
# Order Deny,Allow
# Deny from all
# Allow from 192.168.1.100
# </Limit>