0
Good evening, I made a code htacces like this:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
RewriteRule ^app/([0-9]+) app.php?id=$i
The first Rule is to take the ". php" of the pages and the second is so that instead of appearing app.php? id=11 appear app/11, but when I do $_GET["id"]; it returns "$i" which is the htaccess variable, someone knows the solution so that it returns the id value, in this case, I’m using alphanumeric ids, for example: 09a6cc
Thanks in advance.
In case I believe that to capture the first group of regex, it would be $1 and not $i
– MagicHat