Skip to content

Commit

Permalink
removed nodebeginner -> www.nodebeginner redirect, added domain to GA…
Browse files Browse the repository at this point in the history
…, added canonicals
  • Loading branch information
manuelkiessling committed Aug 27, 2014
1 parent 1461bc0 commit e3fb9e3
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 9 deletions.
5 changes: 5 additions & 0 deletions buy-bundle/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Refresh" content="2; url=http://leanpub.com/b/nodejsbundle" />

<link rel="canonical" href="http://www.nodebeginner.org/buy-bundle/index.html" />

<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-2127388-6']);
_gaq.push(['_setDomainName', 'www.nodebeginner.org']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);

(function() {
Expand Down
5 changes: 5 additions & 0 deletions buy-bundle/salespitch.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Refresh" content="2; url=http://leanpub.com/b/nodejsbundle" />

<link rel="canonical" href="http://www.nodebeginner.org/buy-bundle/salespitch.html" />

<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-2127388-6']);
_gaq.push(['_setDomainName', 'www.nodebeginner.org']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);

(function() {
Expand Down
7 changes: 0 additions & 7 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@
$requestUri = $_SERVER['REQUEST_URI'];
$queryString = $_SERVER['QUERY_STRING'];

if ($httpHost === 'nodebeginner.org') {
$location = 'http://www.nodebeginner.org'.$requestUri;
header('HTTP/1.1 301 Moved Permanently');
header('Location: '.$location);
die();
}

if (substr($requestUri, 0, 11) === '/index.html') {
$location = 'http://'.$httpHost.'/';
if ($queryString !== '') {
Expand Down
4 changes: 3 additions & 1 deletion index-es.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
<title>El Libro para Principiantes en Node.js» Un tutorial completo de node.js</title>
<meta name="description" content="Un tutorial completo de Node.js para principiantes: Aprende como construir una aplicación web completa con Javascript del lado del servidor" />

<link rel="stylesheet" type="text/css" href="olddefault.css" />
<link rel="icon" href="favicon.png" type="image/png" />
<link rel="stylesheet" type="text/css" href="olddefault.css" />
<link rel="canonical" href="http://www.nodebeginner.org/index-es.html" />

<script type="text/javascript">
// Google Analytics
Expand Down
4 changes: 4 additions & 0 deletions index-jp.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

<link rel="icon" href="favicon.png" type="image/png" />
<link rel="stylesheet" type="text/css" href="olddefault.css" />
<link rel="canonical" href="http://www.nodebeginner.org/index-jp.html" />

<style type="text/css">
body {
font-family: "MS P明朝", "ヒラギノ明朝 ProN W3","Hiragino Mincho ProN", Georgia, serif;
Expand All @@ -19,6 +21,8 @@
// Google Analytics
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-2127388-6']);
_gaq.push(['_setDomainName', 'www.nodebeginner.org']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);

(function() {
Expand Down
6 changes: 5 additions & 1 deletion index-kr.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@
<title>The Node Beginner Book (Korean version) » A comprehensive Node.js tutorial</title>
<meta name="description" content="A comprehensive Node.js tutorial for beginners (Korean version): Learn how to build a full blown web application with server-side JavaScript" />

<link rel="stylesheet" type="text/css" href="olddefault.css" />
<link rel="icon" href="favicon.png" type="image/png" />
<link rel="stylesheet" type="text/css" href="olddefault.css" />
<link rel="canonical" href="http://www.nodebeginner.org/index-kr.html" />

<script type="text/javascript">
// Google Analytics
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-2127388-6']);
_gaq.push(['_setDomainName', 'www.nodebeginner.org']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);

(function() {
Expand Down
5 changes: 5 additions & 0 deletions index-zh-cn.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
<title>Node入门 » 一本全面的Node.js教程</title>
<meta name="description" content="一本适合Node.js初学者的全面教程:教你如何使用服务端JavaScript来构建一个完整的web应用" />

<link rel="icon" href="favicon.png" type="image/png" />
<link rel="stylesheet" type="text/css" href="olddefault.css" />
<link rel="canonical" href="http://www.nodebeginner.org/index-zh-cn.html" />

<style>
#book p {
text-align: left;
Expand All @@ -18,6 +21,8 @@
// Google Analytics
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-2127388-6']);
_gaq.push(['_setDomainName', 'www.nodebeginner.org']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);

(function() {
Expand Down
5 changes: 5 additions & 0 deletions index-zh-tw.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
<title>Node入門 » 一本全面的Node.js教學課程</title>
<meta name="description" content="一本適合Node.js初學者的全面教學課程:教你如何使用伺服器端JavaScript來建構一個完整的web應用" />

<link rel="icon" href="favicon.png" type="image/png" />
<link rel="stylesheet" type="text/css" href="olddefault.css" />
<link rel="canonical" href="http://www.nodebeginner.org/index-zh-tw.html" />

<style>
#book p {
text-align: left;
Expand All @@ -18,6 +21,8 @@
// Google Analytics
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-2127388-6']);
_gaq.push(['_setDomainName', 'www.nodebeginner.org']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);

(function() {
Expand Down
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

<link rel="icon" href="favicon.png" type="image/png" />
<link rel="stylesheet" type="text/css" href="default.css" />
<link rel="canonical" href="http://www.nodebeginner.org/" />

<!-- Start Visual Website Optimizer Asynchronous Code -->
<script type='text/javascript'>
Expand Down Expand Up @@ -1737,6 +1738,8 @@ <h3>Routing to real request handlers</h3>
// Google Analytics
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-2127388-6']);
_gaq.push(['_setDomainName', 'www.nodebeginner.org']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);

(function() {
Expand Down

0 comments on commit e3fb9e3

Please sign in to comment.