From 524ca41f8eb11b413d7d8494dbd7a33e7d25b38a Mon Sep 17 00:00:00 2001 From: Chloe Jackson Date: Thu, 3 Apr 2014 17:07:56 -0700 Subject: [PATCH] Redirects take 2 --- config.rb | 82 +++++++++++++++++++++++----------------------- source/404.html.md | 31 +++++++++++++++++- 2 files changed, 71 insertions(+), 42 deletions(-) diff --git a/config.rb b/config.rb index e0b8081b..656430fc 100644 --- a/config.rb +++ b/config.rb @@ -128,54 +128,54 @@ def sub_pages(dir) end #Redirects -require "sinatra" +# require "sinatra" -class BOSHRedir < Sinatra::Base - get "/" do - redirect to('http://docs.cloudfoundry.org/bosh') - end -end +# class BOSHRedir < Sinatra::Base +# get "/" do +# redirect to('http://docs.cloudfoundry.org/bosh') +# end +# end -map "/docs/running/bosh/index.html" do - run BOSHRedir -end +# map "/docs/running/bosh/index.html" do +# run BOSHRedir +# end -class ServicesRedir < Sinatra::Base - get "/" do - redirect to('http://docs.cloudfoundry.org/services/') - end -end +# class ServicesRedir < Sinatra::Base +# get "/" do +# redirect to('http://docs.cloudfoundry.org/services/') +# end +# end -map "/docs/running/architecture/services" do - run ServicesRedir -end +# map "/docs/running/architecture/services" do +# run ServicesRedir +# end -class UsingServicesRedir < Sinatra::Base - get "/" do - redirect to('http://docs.cloudfoundry.org/devguide/services/') - end -end +# class UsingServicesRedir < Sinatra::Base +# get "/" do +# redirect to('http://docs.cloudfoundry.org/devguide/services/') +# end +# end -map "/docs/using/services" do - run UsingServicesRedir -end +# map "/docs/using/services" do +# run UsingServicesRedir +# end -class ServicesAPIRedir < Sinatra::Base - get "/" do - redirect to('http://docs.cloudfoundry.org/services/api.html') - end -end +# class ServicesAPIRedir < Sinatra::Base +# get "/" do +# redirect to('http://docs.cloudfoundry.org/services/api.html') +# end +# end -map "/docs/running/architecture/services/api.html" do - run ServicesAPIRedir -end +# map "/docs/running/architecture/services/api.html" do +# run ServicesAPIRedir +# end -class DeployingCFRedir < Sinatra::Base - get "/*" do - redirect to('http://docs.cloudfoundry.org/deploying/') - end -end +# class DeployingCFRedir < Sinatra::Base +# get "/*" do +# redirect to('http://docs.cloudfoundry.org/deploying/') +# end +# end -map "/docs/running/deploying-cf/" do - run DeployingCFRedir -end +# map "/docs/running/deploying-cf/" do +# run DeployingCFRedir +# end diff --git a/source/404.html.md b/source/404.html.md index 00bd268c..a354f927 100644 --- a/source/404.html.md +++ b/source/404.html.md @@ -3,5 +3,34 @@ title: Page not Found --- \ No newline at end of file