You are specifying a url that contains a
to z
in lower case (a-z
), a
to z
in uppercase (A-Z
), 0
to 9
(0-9
) and a dash -
is to be rewritten, if it doesn't exist. But the url contains a forward slash /
, so you need to include that to the mathing
This should fix that problem and redirect.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z0-9-/]+)/?$ /admin/index.php?id=$1 [L,QSA]