RewriteEngine On # Kalau file HTML ada, langsung tampilkan RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{REQUEST_URI} \.(html|xml|txt)$ [NC] RewriteRule ^ - [L] # Sisa request ke CodeIgniter RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L]