aboutsummaryrefslogtreecommitdiff
path: root/template/page.phtml
diff options
context:
space:
mode:
authorMaZderMind2014-12-23 09:33:39 +0100
committerMaZderMind2014-12-23 09:33:39 +0100
commit96fae0eb5bbe000cf5cc263c95da296c367d7bb6 (patch)
tree6623ecdb5ea8426a973bd8bd05640af9a5ffeddd /template/page.phtml
parentfed0e679965c2426797e741b022c10e60de06d67 (diff)
set <link rel="canonical" /> to guard against cache-servers being listed in search results
Diffstat (limited to 'template/page.phtml')
-rw-r--r--template/page.phtml1
1 files changed, 1 insertions, 0 deletions
diff --git a/template/page.phtml b/template/page.phtml
index 07bc7df..63a4bac 100644
--- a/template/page.phtml
+++ b/template/page.phtml
@@ -16,6 +16,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<base href="<?=h($baseurl)?>" />
+ <link href="<?=h($baseurl.ltrim($_SERVER['REQUEST_URI'], '/'))?>" rel="canonical" />
<link href="assets/img/apple-touch-icon/76x76.png" rel="apple-touch-icon" />
<link href="assets/img/apple-touch-icon/76x76.png" rel="apple-touch-icon" sizes="76x76" />