Quentinb Posted June 25, 2012 Share Posted June 25, 2012 Hi All. I added dynamic title tags to my website at: http://www.farmstockforsale.co.za/ Specifically pages like these: http://www.farmstockforsale.co.za/fulldetails-Huge_Plough_Groot_Ploeg_For_Sale_Te_Koop-23.html http://www.farmstockforsale.co.za/fulldetails-Mix_Breed_of_Chickens_For_Sale-12.html http://www.farmstockforsale.co.za/fulldetails-Old_Farm_Cheap_Tank_Tanker_Truck_For_Sale-31.html You will see that the landing page(fulldetails) is the same for each, but the title for each is not. Google finally started indexing these pages and now says that I have duplicate tags? This is part of the code: session_start(); include("db/configure.php"); include("db/database.php"); include("db/constants.php"); include("functions.php"); $url = $_SERVER["REQUEST_URI"]; $pos = strpos($url, "-"); if($pos !== false) { $title = substr($url, strpos($url, "-")+1); $title = substr($title, 0, strpos($title, "-")); $title = str_replace("_", " ", $title); } My title tag: <title><?php echo $title; ?></title> At this stage still playing around and will clean my code later. Just need to know why Google is reading all pages with the same title? Quote Link to comment https://forums.phpfreaks.com/topic/264732-dynamic-title-tags-and-google-index/ Share on other sites More sharing options...
Adam Posted June 25, 2012 Share Posted June 25, 2012 They're different for me? How much time did you give in between adding the dynamic titles and checking the feedback? It's possible Google just hasn't re-indexed the pages yet. Quote Link to comment https://forums.phpfreaks.com/topic/264732-dynamic-title-tags-and-google-index/#findComment-1356804 Share on other sites More sharing options...
Quentinb Posted June 25, 2012 Author Share Posted June 25, 2012 I had it as a normal static page about 2 weeks ago when Google first indexed it. Then changed it to dynamic as it is now and monitored Google Webmaster Tools everyday until last night when I saw the new crawl finding the new dynamic page, but complaining about the duplicate title tags. Quote Link to comment https://forums.phpfreaks.com/topic/264732-dynamic-title-tags-and-google-index/#findComment-1356806 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.