Skip to content
WJunction - Webmaster Forum

DLE pagination and duplicate title tag

Status
Not open for further replies.

John

Active Member
660
2009
49
OK. I saw that many DLE sites have this problem (freshwap has 22000 pages with same title tag) so I fixed this on my site on this way.

First you need to edit this and than you will be able to put php code in main.tpl

PHP:
Open file index.php

Find

echo $tpl->result['main'];

Replace to

eval (' ?' . '>' . $tpl->result['main'] . '<' . '?php ');

After that, in your main.tpl find

Code:
<head>

and after that add
PHP:
<?php
$uri = $_SERVER['REQUEST_URI'];
$findme = "/page/";
$pos = strpos($uri, $findme);
if ($pos !== false) {
$pieces = explode("/", $uri);
$fort = $pieces[2];
echo "<title>Page $fort Your Homepage Title</title>";
}
?>

thats it

After that your title tag will be
Page "pagenumber" Homepage Title :D
 
Status
Not open for further replies.

About the author

J
Active Member · Joined
660
Messages
49
Reactions
28
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom