Add an htaccess file so that we can manage redirects.
This commit is contained in:
parent
992eb8dcf5
commit
7c323feb31
@ -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)
|
||||||
|
|
||||||
|
@ -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
4
doc-src/assets/htaccess
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
RedirectMatch 301 /docs/ /reference/compass/
|
||||||
|
RedirectMatch 301 /docs/tutorials/(.*) /help/tutorials/$1
|
||||||
|
RedirectMatch 301 /docs/(.*) /$1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user