Options -Indexes

<IfModule mod_rewrite.c>
RewriteEngine On

RewriteRule ^\.well-known(/.*)?$ - [L,NC]
# RewriteCond %{HTTPS} off
# RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]


# =====================================================
# HALAMAN KHUSUS
# =====================================================
RewriteRule ^404/?$ 404.php [L]
RewriteRule ^Logout?$ App/Oauth/Logout.php [L]

# =====================================================
# PAGE
# =====================================================
RewriteRule ^oauth/google/?$ google/index.php [L]
RewriteRule ^scan-portal/?$ scan-portal/index.php [L]

# =====================================================
# JIKA FILE / FOLDER TIDAK ADA -> ROUTING KE index.php
# =====================================================
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]*)$ index.php?mod=$1 [L,QSA]

</IfModule>