codeigniter の index.php 削除ルールを含む .htaccess ファイルに追加の書き換えルールを追加するにはどうすればよいかお尋ねしたいと思います。
ここに私の .htaccess ファイルがあります
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^profile/([0-9]+)$ /index.php/front/profileDetail/$1
RewriteRule ^(.*)$ /index.php/$1
問題は、一度に 1 つのルールしか機能しないことです。上記のようにファイルを保存すると、内部サーバー エラーが返されます。
私が望むのは、index.php ファイルを完全に削除し、URL を xyz.com/front/profileDetail/50 から xyz.com/profile/50 に書き換えることです。
何が悪いのか助けてください、私はこの点で完全に初心者です。
ありがとう!あらかじめ。