I've used a url rewrite in the htaccess file to show 2 query string values as /item1/item2
When I get item2 it has .php at the end. Is there something I'm missing on my rewrite?
Get call
$card = $_GET['card'];
$card; // This value has .php after the value
Rewrite
RewriteRule ^player-score\/([^\/]+)\/([^\/]+)\/? /player-score.php?id=$1&card=$2 [QSA,NC,L]
Fully example URL
www.example.com/player-score.php?id=1&card=45