I have PHP code
Using .htaccess mod-rewrite
for company_name-ID.html TO index.php?id=ID
the code gives me filename as index.php what I need is company_name-ID.html
The code I am using is
$currentFile = $_SERVER['PHP_SELF'];
$parts = explode('/', $currentFile);
$currentFile = $parts[count($parts) - 1];
Please help me