Skip to content

Commit 704a3a9

Browse files
GiovanniGiovanni
authored andcommitted
Added link canonical
1 parent d9660b9 commit 704a3a9

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

New/beethoven.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@
99

1010
# Set the cache control header
1111
header("Cache-Control: max-age=604800");
12+
header("Vary: User-Agent, Accept");
1213

1314
$html_to_print = '<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><title>Lyrics of Beethoven\'s Ode to Joy - Lyrics repository</title><link rel="stylesheet" type="text/css" href="'.$path_parts['dirname'].'/base.php"/>';
1415
if ($is_mobile == 0)
1516
{
1617
$html_to_print .= '<link rel="stylesheet" type="text/css" href="'.$path_parts['dirname'].'/enhanced_600_800.php"/><link rel="stylesheet" type="text/css" href="'.$path_parts['dirname'].'/enhanced_800_plus.php" media="only all and (min-width: 801px)" /><!--[if lt IE 9 & !IEMobile]><link rel="stylesheet" type="text/css" href="'.$path_parts['dirname'].'/enhanced_600_800.php"/><![endif]-->';
1718
}
18-
$html_to_print .= '</head><body><div id="header"><h1>Lyrics of Beethoven\'s Ode to Joy</h1></div><div id="container"><div id="sidebar1" class="sidebar"><ul><li><a href="#">Lyric Repository\'s Home</a></li><li><a href="#">Site Map</a></li></ul></div><div id="breadcrumbs" class="breadcrumbs"> Home -&gt; Beethoven\'s Ode to Joy</div><div id="centralpart"><div id="content1" class="content">';
19+
$html_to_print .= '<link rel="canonical" href="http://'.$_SERVER['SERVER_NAME'].'/beethoven.php"/></head><body><div id="header"><h1>Lyrics of Beethoven\'s Ode to Joy</h1></div><div id="container"><div id="sidebar1" class="sidebar"><ul><li><a href="#">Lyric Repository\'s Home</a></li><li><a href="#">Site Map</a></li></ul></div><div id="breadcrumbs" class="breadcrumbs"> Home -&gt; Beethoven\'s Ode to Joy</div><div id="centralpart"><div id="content1" class="content">';
1920
if ($is_mobile == 0)
2021
{
2122
$html_to_print .= '<img width="240" height="300" alt="Beethoven\'s portrait" src="beethoven_240px.gif" class="big-images"/>';

New/beethovenlife.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@
99

1010
# Set the cache control header
1111
header("Cache-Control: max-age=604800");
12+
header("Vary: User-Agent, Accept");
1213

1314
$html_to_print = '<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><title>Lyrics of Beethoven\'s Ode to Joy - Lyrics repository</title><link rel="stylesheet" type="text/css" href="'.$path_parts['dirname'].'/base.php"/>';
1415
if ($is_mobile == 0)
1516
{
1617
$html_to_print .= '<link rel="stylesheet" type="text/css" href="'.$path_parts['dirname'].'/enhanced_600_800.php"/><link rel="stylesheet" type="text/css" href="'.$path_parts['dirname'].'/enhanced_800_plus.php" media="only all and (min-width: 801px)" /><!--[if lt IE 9 & !IEMobile]><link rel="stylesheet" type="text/css" href="'.$path_parts['dirname'].'/enhanced_600_800.php"/><![endif]-->';
1718
}
18-
$html_to_print .= '</head><body><div id="header"><h1>Lyrics of Beethoven\'s Ode to Joy</h1></div><div id="container"><div id="sidebar1" class="sidebar"><ul><li><a href="#">Lyric Repository\'s Home</a></li><li><a href="#">Site Map</a></li></ul></div><div id="breadcrumbs" class="breadcrumbs"> Home -&gt; Beethoven\'s Info</div><div id="centralpart"><div id="content1" class="content">';
19+
$html_to_print .= '<link rel="canonical" href="http://'.$_SERVER['SERVER_NAME'].'/beethovenlife.php"/></head><body><div id="header"><h1>Lyrics of Beethoven\'s Ode to Joy</h1></div><div id="container"><div id="sidebar1" class="sidebar"><ul><li><a href="#">Lyric Repository\'s Home</a></li><li><a href="#">Site Map</a></li></ul></div><div id="breadcrumbs" class="breadcrumbs"> Home -&gt; Beethoven\'s Info</div><div id="centralpart"><div id="content1" class="content">';
1920
if ($is_mobile == 0)
2021
{
2122
$html_to_print .= '<img width="240" height="300" alt="Beethoven\'s portrait" src="beethoven_240px.gif" class="big-images"/>';

New/settings.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
$path_parts = pathinfo($_SERVER['PHP_SELF']);
88

99
#list of settings
10-
#$DOMAIN = 'localhost';
11-
$DOMAIN = 'www.dimilia.it';
10+
$DOMAIN = 'localhost';
11+
#$DOMAIN = 'www.dimilia.it';
1212

1313

1414

0 commit comments

Comments
 (0)