Here is my .htaccess.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^([0-9]+)/([a-zA-Z]+)/$ record.php?id=$1&name=$1 [L,QSA]
My link to record page.
<a href="record.php/id/<?php echo $id; ?>/name/<?php echo $name; ?>">Link to record page</a>
On record.php page, I tried to get the GET parameters like this. The var dump returns string(0) "" string(0) "" .
$id = $_GET['id'];
$name = $_GET['name'];
var_dump($id);
var_dump($name);
The record page does show up, but it's messed up because it uses the above GET parameters to retrive data from database. So I was wondering if you can tell me what am I doing wrong and how can I fix it?