I am trying to set up for my website two different .htaccess
rules, but I still cannot find the correct solution.
I would like to route everything on website.com/almost-everything
- this is working me well. And further, I would like to add yet this route: website.com/car/car_id
- and here comes troubles, I don't know how to set up it.
Here are my attempts:
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
Could you help me please with the second rule?