Webサイトに2つの異なるルールを設定しようとして.htaccess
いますが、それでも正しい解決策が見つかりません。
私はすべてをルーティングしたいと思いますwebsite.com/almost-everything
-これは私をうまく機能させています。さらに、このルートを追加したいと思います。-そしてwebsite.com/car/car_id
、ここで問題が発生します。設定方法がわかりません。
これが私の試みです:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?skill=$1 [L,QSA]
RewriteRule ^car/(.*)$ ./index.php?id=car&car_id=$1 # the wrong rule - the page with website.com/car/car_id just doesn't display the correct file
2番目のルールを教えていただけませんか。