Now i want to cleanup my url with .htaccess here is my .htaccess code
RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)\.html$ /movies.php?id=$1&m=$2 [L]
its working fine
here is movies.php
<?php
if (!isset($_GET['m'])) {
header("Location:index.php");
} else {
$m = str_replace('_',' ',$_GET['m']);
}
echo $_GET['m'];
?>
the problem is it every time redirect the page to index.php