Forum Moderators: coopster

Message Too Old, No Replies

Dynamic Title Tags with seo url

         

Why_not

10:13 pm on Jan 17, 2011 (gmt 0)

10+ Year Member



Hi,
i change my url to seo friendly seo. example old url :
mydomain/news.php?id=25

new url : ( facebook urls)
mydomain/this-is-seo-url

Now my problem :
before change url i show dynamic html title tags with this :

if(isset($_REQUEST["id"])&&($_REQUEST["id"]<>"")&&($_REQUEST["id"]<>0))
{

$id=$_REQUEST["id"];
if(preg_match("/\/news.php/",$_SERVER['PHP_SELF']))
{
$sql=mysql_fetch_array(mysql_query("select * from new where id=$id"));
$title_str.=$sql["news_name"]." : ";

<title><?php echo $title_str; ?></title> // show dynamic title



now i dont now any idea for show dynamic title with seo frienldy url. how to show dynamic title for each id / news_name .

Thanks.

Why_not

9:33 pm on Jan 18, 2011 (gmt 0)

10+ Year Member



Any Help?

coopster

12:45 am on Jan 19, 2011 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



How are you showing the content? I mean, if the data is in the database tables you must be retrieving it even with the seo-friendly url, no? You may need to give us a little more detail.