moh_sulaiman Posted July 7, 2008 Share Posted July 7, 2008 I use google webmaster tools. Under content analysis they are showing Title tag issues The issue is duplicate title tags. The problem is the duplicats are for the exact same page because they are reading my page once with the index.php and once without. See below. Meridian Idaho Portrait Photographer - Timson Studio /portrait/meridian/ /portrait/meridian/index.php Can anyone advise me on how I can solve this problem. I dont want google to get confused and think I have duplicate content when I dont. Link to comment https://forums.phpfreaks.com/topic/113604-google-optimization/ Share on other sites More sharing options...
discomatt Posted July 7, 2008 Share Posted July 7, 2008 can we see the source for index.php Link to comment https://forums.phpfreaks.com/topic/113604-google-optimization/#findComment-583744 Share on other sites More sharing options...
lemmin Posted July 7, 2008 Share Posted July 7, 2008 You could do something like: if ($_SERVER['REQUEST_URI'] == "/index.php") echo "different title"; However, my guess is that google is keeping one of the two pages indexed and it doesn't really matter that they are throwing one out because it is, in fact, the same page. In which case, I wouldn't worry about it. Link to comment https://forums.phpfreaks.com/topic/113604-google-optimization/#findComment-583842 Share on other sites More sharing options...
moh_sulaiman Posted July 8, 2008 Author Share Posted July 8, 2008 /////////////database related lines removed <HTML><HEAD><title><? echo "Hotel reservations in $keyword1 $keyword4: Book discount $keyword1 $keyword4 online hotel reservations."; ?></title> <META content="<? echo "Find hotel reservations in $keyword1 $keyword4. Book discount $keyword1 $keyword4 online hotel reservations."; ?>" name="description"> <META content="<? echo "hotel reservations $keyword1 $keyword4, discount $keyword1 hotel reservations, $keyword1 $keyword4 online hotel reservations, hotel room reservations $keyword1, luxury, cheap lodging, budget accommodations, online, listings, listing, book, booking, reserve, reservations, rate, rates, motel, motels, room, rooms"; ?>" name="keywords"> <META HTTP-EQUIV="revisit-after" content="15 days"> <META name="robots" content="index,follow"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta name="language" content="en-us"> <meta name="Coverage" content="Worldwide"> <meta name="rating" content="General,all"> <LINK REL=stylesheet TYPE="text/css" HREF="http://www.all-reservations.com/styles.css"> <SCRIPT src="../../includes/datebox.js" type=text/javascript> <!-- //--></SCRIPT> <SCRIPT src="../../includes/calendar_horiz.js" type=text/javascript> <!-- //--></SCRIPT> </HEAD> [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/113604-google-optimization/#findComment-584140 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.