I have the below code :
<?php
//Fetching the Category Name
$sql="SELECT * FROM subcategory WHERE CategoryID='$catid'";
$rs = mysql_query($sql) or die(mysql_error());
while($row = mysql_fetch_array($rs)){
?>
<a href="questions.php?scid=<?php echo $row['SubCategoryID']; ?>"><?php echo $row['SubCategoryName']; ?></a>
<?php } ?>
I have done a .htaccess file but still the rewrite is not working.
mysite/article.php?scid=9&page=1
I want them as mysite.com/categoryname_description_subcategoryname-1