好的我想要每页的动态标题和说明。页面本身是php,但它根据您的选择从DB不同的内容填充。这是当前的代码,因为你可以看到他们设置它使Facebook友好的领主只知道为什么当搜索引擎友好是一个更高的优先级。有没有办法将名称/ desc的2个变量移植到html标题和说明中,使谷歌和其他人更容易索引页面。他们的算法非常受欢迎,它告诉我超过340个链接是相同的。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta property="og:title" content="<?=$build_data['name'];?>" />
<meta property="og:description" content="<?=$build_data['desc'];?>" />
<meta property="og:image" content="<?=PATH;?>upload_building_image/<?=$build_image['image'];?>" />
<?=$general->pagemeta('Property_Detail');?>
答案 0 :(得分:0)
你可以这样做:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="title" content="<?=$build_data['name'];?>" />
<meta name="description" content="<?=$build_data['desc'];?>" />
<meta property="og:title" content="<?=$build_data['name'];?>" />
<meta property="og:description" content="<?=$build_data['desc'];?>" />
<meta property="og:image" content="<?=PATH;?>upload_building_image/<?=$build_image['image'];?>" />
<?=$general->pagemeta('Property_Detail');?>