I was wondering if it is possible to use an ID ($_GET) after a file in the address bar so it would look like this
I know there is a way of doing something like that but I'm only getting it to work on the index.php file using .htaccess
This is the .htaccess code I know works for the index.php file:
RewriteEngine on RewriteBase / RewriteRule ^([a-zA-Z0-9]+)$ index.php?id=$1
But I'm not sure if there is a way to change that so it works on another file, it is in the same directory as the index.php file.
I've tried change to "RewriteBase /" to "RewriteBase /product.php" but it won't work.
So is there anyway to get this working?