Add an htaccess file so that we can manage redirects.

This commit is contained in:
Chris Eppstein 2010-12-18 14:08:21 -08:00
parent 992eb8dcf5
commit 7c323feb31
3 changed files with 9 additions and 1 deletions

View File

@ -14,7 +14,7 @@ GIT
PATH PATH
remote: .. remote: ..
specs: specs:
compass (0.11.alpha.4.668a856) compass (0.11.alpha.4.992eb8d)
chunky_png (~> 0.10.3) chunky_png (~> 0.10.3)
sass (>= 3.1.0.alpha.50) sass (>= 3.1.0.alpha.50)

View File

@ -64,6 +64,10 @@ end
route("/stylesheets/#{'*/' * i}_*/") {nil} route("/stylesheets/#{'*/' * i}_*/") {nil}
end end
route '/assets/htaccess/' do
"#{SITE_ROOT}/.htaccess"
end
route '/assets/css/*/' do route '/assets/css/*/' do
"#{SITE_ROOT}/stylesheets"+item.identifier.chop[11..-1]+"."+item[:extension] "#{SITE_ROOT}/stylesheets"+item.identifier.chop[11..-1]+"."+item[:extension]
end end

4
doc-src/assets/htaccess Normal file
View File

@ -0,0 +1,4 @@
RedirectMatch 301 /docs/ /reference/compass/
RedirectMatch 301 /docs/tutorials/(.*) /help/tutorials/$1
RedirectMatch 301 /docs/(.*) /$1