
RewriteOptions inherit
RewriteEngine On

# Force HTTPS
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# Remove index.php from URL
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^penerimaankedokteranunima\.my\.id\/?(.*)$ "https\:\/\/pmbfk\.unima\.ac\.id\/$1" [R=301,L]
