mtishetsky,
thank you very much,
Would you explain this better for me as I'm new in this MOD-Rewrite.
I have this in PHP script:
if(isset($_REQUEST["cid"]))
{
$cat_query=mysql_query("Select * from sbbleads_categories where sb_pid=" . $_REQUEST["cid"]);
$rs=mysql_num_rows($cat_query);
if(($rs<=0)||($_REQUEST["cid"]==0))
{
header("Location:"."selloffers.php?cid=".$_REQUEST["cid"]);
die();
}
}
Man, you should output links on your pages in a way of http://www.b2b.rishta4u.com/cat_sell/cid/89.html and then just add RewriteRule:
RewriteRule ^([^\/]+)\/([^\/]+)\/([0-9]+)\.html$ /$1.php?$2=$3
No changes of php script is needed if you already do something like
$sql = "select * from mytable where cid = {$_REQUEST['cid']}";
Should I add this in PHP code as link to pages :
http://www.b2b.rishta4u.com/cat_sell/cid/89.html
and then to mod rewrite?
I changed .htaccess per your instruction but a site loads and cannot be loaded fully!?!?!?
Thank you
|