会社のイントラネット用にソーシャルネットワークを作成しています。htaccess を使用して URL から index.php ファイルを削除することに成功しましたが、ユーザーが別のユーザー プロファイルを取得できるようにする「profile.php」ファイルがあります。.htaccess と mod_rewrite を使用して index.php と profile.php の両方を削除する方法はありますか?
これは私の現在のhtaccessファイルです:
RewriteEngine on
RewriteCond $1 !^(index\.php|css|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
ここでも、index.php だけでなく profile.php も削除できるようにしたいと考えています。
編集:CentOS サーバーで cPanel の最新バージョンを実行しています。