# =========================================================
# .HTACCESS RESET - NON AMP
# Domain: rute-28.xyz
# =========================================================

# Cegah isi folder terlihat
Options -Indexes

# Matikan pencocokan URL otomatis Apache
Options -MultiViews

# Halaman utama
DirectoryIndex index.php index.html

RewriteEngine On
RewriteBase /

# Jika pengunjung membuka /index.php, tampilkan domain saja
RewriteCond %{THE_REQUEST} \s/+index\.php(?:[\s?]|$) [NC]
RewriteRule ^index\.php$ / [R=302,L,NE,QSD]

# Arahkan URL AMP lama kembali ke homepage
RewriteRule ^amp(?:/.*)?$ / [R=302,L,NC]

# File dan folder asli dibuka langsung
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]

# Tidak ada redirect atau rewrite lainnya

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