RewriteEngine On # Blokir akses langsung ke semua file kecuali file.php & style.css RewriteCond %{REQUEST_URI} !file\.php$ RewriteCond %{REQUEST_URI} !style\.css$ RewriteRule .* - [F] # Contoh redirect khusus di folder ini RewriteRule ^lama\.php$ baru.php [R=301,L]