The following is my current .htaccess
file. If I open https://example.com/test
and it doesn't end with one of the endings specified in line 2, it will open https://example.com/index.php?url=test
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !\.(css|js|png|jpg|php|svg|gif|webm|webp|eot|ttf|woff|woff2)
RewriteRule ^([^/]+)/? index.php?url=$1 [L,QSA]
However, if I try to open https://example.com/something/test
, it just opens ?url=something
instead of ?url=something/test
. How can I achieve this? I have absolutely no knowledge about regex stuff