lazysod
5/22/2014 - 10:29 AM

Generate a canonical URL using PHP

Generate a canonical URL using PHP

<link rel="canonical" href="http://www.website.com<?php echo parse_url($_SERVER['REQUEST_URI'],PHP_URL_PATH);?>">