diff --git a/_includes/footer.html b/_includes/footer.html
index 065308c8c34ad14c09a9f61fd15180b526e83d4c..6130efacf455fd12936cda4d9dd719da65f570bc 100644
--- a/_includes/footer.html
+++ b/_includes/footer.html
@@ -1,13 +1,13 @@
 <!-- Bootstrap core JavaScript
 ================================================== -->
 <!-- Placed at the end of the document so the pages load faster -->
-<script src="/assets/js/jquery.js"></script>
-<script src="/dist/js/bootstrap.js"></script>
+<script src="{{ page.base_url }}/assets/js/jquery.js"></script>
+<script src="{{ page.base_url }}/dist/js/bootstrap.js"></script>
 
 <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
-<script src="/assets/js/holder.js"></script>
+<script src="{{ page.base_url }}/assets/js/holder.js"></script>
 
-<script src="/assets/js/application.js"></script>
+<script src="{{ page.base_url }}/assets/js/application.js"></script>
 
 {% unless site.port != "9001" %}
   <!-- Analytics
diff --git a/_includes/header.html b/_includes/header.html
index cd59fcd543390fc65ea8b8b8019f037835e5658c..3efbb8d7d7c163af2c42a0188f4d98f7aed2695e 100644
--- a/_includes/header.html
+++ b/_includes/header.html
@@ -12,7 +12,7 @@
 </title>
 
 <!-- Bootstrap core CSS -->
-<link href="/dist/css/bootstrap.css" rel="stylesheet">
+<link href="{{ page.base_url }}/dist/css/bootstrap.css" rel="stylesheet">
 
 {% if page.layout != "example" %}
 <!-- Documentation extras -->
@@ -27,11 +27,11 @@
 <![endif]-->
 
 <!-- Favicons -->
-<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/assets/ico/apple-touch-icon-144-precomposed.png">
-<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/assets/ico/apple-touch-icon-114-precomposed.png">
-  <link rel="apple-touch-icon-precomposed" sizes="72x72" href="/assets/ico/apple-touch-icon-72-precomposed.png">
-                <link rel="apple-touch-icon-precomposed" href="/assets/ico/apple-touch-icon-57-precomposed.png">
-                               <link rel="shortcut icon" href="/assets/ico/favicon.png">
+<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ page.base_url }}/assets/ico/apple-touch-icon-144-precomposed.png">
+<link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{ page.base_url }}/assets/ico/apple-touch-icon-114-precomposed.png">
+  <link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ page.base_url }}/assets/ico/apple-touch-icon-72-precomposed.png">
+                <link rel="apple-touch-icon-precomposed" href="{{ page.base_url }}/assets/ico/apple-touch-icon-57-precomposed.png">
+                               <link rel="shortcut icon" href="{{ page.base_url }}/assets/ico/favicon.png">
 
 {% unless site.port != "9001" %}
   <script type="text/javascript">
diff --git a/_layouts/customize.html b/_layouts/customize.html
index 5fd92549eed6e24bd30fdd2a16add7c4f6c89d02..0d1c6d2e8a2517421ae2ea70946ed6a1baf5588c 100644
--- a/_layouts/customize.html
+++ b/_layouts/customize.html
@@ -1,4 +1,4 @@
- <!DOCTYPE html>
+<!DOCTYPE html>
 <html lang="en">
   <head>
     <!-- Meta, title, CSS, favicons, etc. -->
diff --git a/_layouts/default.html b/_layouts/default.html
index fc6003260c21ccadbec0324a90ddaafb56716dd7..24cb30a00c5ba6a17dfb1cb516997c5de658b8b3 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -1,4 +1,4 @@
- <!DOCTYPE html>
+<!DOCTYPE html>
 <html lang="en">
   <head>
     <!-- Meta, title, CSS, favicons, etc. -->
diff --git a/components.html b/components.html
index b78390b2f61a84259e9e08ff608e7caa3489b07b..e612caff5566b14cef8870c9ddff15bd5a202fcd 100644
--- a/components.html
+++ b/components.html
@@ -3,6 +3,7 @@ layout: default
 title: Components
 slug: components
 lead: "Dozens of reusable components built to provide iconography, dropdowns, navigation, alerts, popovers, and much more."
+base_url: "../"
 ---
 
 
diff --git a/css.html b/css.html
index 9e7da28f98d9683646efc70a9ccf87f6a925830e..f53b63e5579713cc0e95bb8174d8fd0234016dd5 100644
--- a/css.html
+++ b/css.html
@@ -3,6 +3,7 @@ layout: default
 title: CSS
 slug: css
 lead: "Global CSS settings, fundamental HTML elements styled and enhanced with extensible classes, and an advanced grid system."
+base_url: "../"
 ---
 
 
diff --git a/customize.html b/customize.html
index cb8b0fb92974d90e7cf31e6c0b9ad755fc3aa460..cc90d665d8fd88bbab8822ee5781d94be0447311 100644
--- a/customize.html
+++ b/customize.html
@@ -3,6 +3,7 @@ layout: customize
 title: Customize and download
 slug: customize
 lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to get your very own version.
+base_url: "../"
 ---
 
 <!-- Customize
diff --git a/index.html b/index.html
index 10ec6d084654d77f49bbd767841f5c9039f8494f..94ce52ade7e171d02d458051a76dafa660cb6ad5 100644
--- a/index.html
+++ b/index.html
@@ -1,6 +1,7 @@
 ---
 layout: home
 title: Bootstrap
+base_url: "./"
 ---
 
 <div class="bs-masthead">
diff --git a/javascript.html b/javascript.html
index 39887ba6a029ad5544ea7d95d5a6d4a8b4002a21..6cb6dd11f0f520402346c775274a3101975f9a0d 100644
--- a/javascript.html
+++ b/javascript.html
@@ -3,6 +3,7 @@ layout: default
 title: JavaScript
 slug: js
 lead: "Bring Bootstrap's components to life with over a dozen custom jQuery plugins. Easily include them all, or one by one."
+base_url: "../"
 ---