From 7c323feb319305d8d63ac0fe353a29df7e00e768 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sat, 18 Dec 2010 14:08:21 -0800 Subject: [PATCH] Add an htaccess file so that we can manage redirects. --- doc-src/Gemfile.lock | 2 +- doc-src/Rules | 4 ++++ doc-src/assets/htaccess | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 doc-src/assets/htaccess diff --git a/doc-src/Gemfile.lock b/doc-src/Gemfile.lock index ed53a286..be1d5a32 100644 --- a/doc-src/Gemfile.lock +++ b/doc-src/Gemfile.lock @@ -14,7 +14,7 @@ GIT PATH remote: .. specs: - compass (0.11.alpha.4.668a856) + compass (0.11.alpha.4.992eb8d) chunky_png (~> 0.10.3) sass (>= 3.1.0.alpha.50) diff --git a/doc-src/Rules b/doc-src/Rules index 1fe7d663..e3a15741 100644 --- a/doc-src/Rules +++ b/doc-src/Rules @@ -64,6 +64,10 @@ end route("/stylesheets/#{'*/' * i}_*/") {nil} end +route '/assets/htaccess/' do + "#{SITE_ROOT}/.htaccess" +end + route '/assets/css/*/' do "#{SITE_ROOT}/stylesheets"+item.identifier.chop[11..-1]+"."+item[:extension] end diff --git a/doc-src/assets/htaccess b/doc-src/assets/htaccess new file mode 100644 index 00000000..397dfca7 --- /dev/null +++ b/doc-src/assets/htaccess @@ -0,0 +1,4 @@ +RedirectMatch 301 /docs/ /reference/compass/ +RedirectMatch 301 /docs/tutorials/(.*) /help/tutorials/$1 +RedirectMatch 301 /docs/(.*) /$1 +