<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On
    
    #Disable index view
    options -Indexes

    <FilesMatch "^\.ht">
        Require all denied
    </FilesMatch>
    
    <FilesMatch "^\.env">
        Order allow,deny
        Deny from all
    </FilesMatch>    
    
    #hide a Specifuc File
    <Files .env>
        order allow,deny
        Deny from all
    </Files>

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteRule ^/?([A-Za-z-0-9().]+).html/?$ us.php?s=$1 [L]

#waktu proses = 4menit
php_value max_execution_time 360