Using a rel canonical for CMS
-
This post is deleted! -
You might want to talk to a developer and ask them the easiest solution. Preferably the one who built the site.
Very limited information my friend. Its obvious you need to add these tags to the header of each page but how are the headers divided, are they snippets, chunks, includes or none of the above. You have a .php site so it should not be too hard to customize.
-
It's a bit tough to say from those examples - my gut reaction is that, based on the "id=" this page actually represents multiple property pages. If you canonical everything to "book-hotel.php", then you'll end up with just one booking page and possibly lose out on property information. Now, if that page is not the main property listing, but is just the booking form, for example, that's fine - I'm just not clear from the generic example (and don't want to steer you in the wrong direction).
As for implementation, it really does depend on your CMS/code, and your developer would have to guide that, as @waqid said. If you really can collapse everything to "book-hotel.php", though, it's really just one page. There are hundreds/thousands of URLs, but you only need to add one canonical tag to one template. It should be relatively easy.
The other, less elegant but still functional, option would be to block one of the URL parameters in Google Webmaster Tools and Bing Webmaster Tools. Find a parameter that's unique to the "book-hotel.php" pages, and let them know that those pages shouldn't be indexed. I prefer the canonical, but if implementing it becomes too much of pain, the webmaster tools options gives you a way to do it without involving your developer.
-
This post is deleted! -
If it's just a booking page and you have separate pages for the properties themselves, I think you could probably canonical the "book-hotel.php" page. I'm hestitant to say for sure, without seeing the actual site, but it sounds like the booking pages are low-value, from a search perspective (i.e. they're important for users, but don't add value to search visitors).
For the property pages, unique titles are important. Ideally, you can generate them from your database, but how to do that is completely dependent on your platform/CMS.