Rails.application.routes.draw do
  # Render legal documents by using Keiyaku CSS
  # https://github.com/cognitom/keiyaku-css
  resources :docs, only: [:index, :show]

  # Static Pages
  root "static_pages#home"

  # Redirects
  get "/releases/2016/12/12/new-backend", to: redirect('/news/2016/12/12/new-backend')
  get "/blogs/2016/12/12/new-backend",    to: redirect('/news/2016/12/12/new-backend')

  # Issue SSL Certification
  get "/.well-known/acme-challenge/:id" => "page#letsencrypt"
  get "/.well-known/acme-challenge/:id" => "plain_page#letsencrypt"

  # Sessions
  get '/logout',       to: 'sessions#destroy'
  resource :session, only: [:create, :destroy]

  # Default Scrivito routes. Adapt them to change the routing of CMS objects.
  # See the documentation of 'scrivito_route' for a detailed description.
  scrivito_route '(/)(*slug-):id', using: 'slug_id'
  scrivito_route '/*permalink',    using: 'permalink', format: false
end

Rails.application.routes.draw do
  get 'static_pages/home'

  # Render legal documents by using Keiyaku CSS
  # https://github.com/cognitom/keiyaku-css
  resources :docs, only: [:index, :show]

  # Redirects
  get "/releases/2016/12/12/new-backend", to: redirect('/news/2016/12/12/new-backend')
  get "/blogs/2016/12/12/new-backend",    to: redirect('/news/2016/12/12/new-backend')

  # Issue SSL Certification
  get "/.well-known/acme-challenge/:id" => "page#letsencrypt"
  get "/.well-known/acme-challenge/:id" => "plain_page#letsencrypt"

  # Sessions
  get '/logout',       to: 'sessions#destroy'
  resource :session, only: [:create, :destroy]

  # Default Scrivito routes. Adapt them to change the routing of CMS objects.
  # See the documentation of 'scrivito_route' for a detailed description.
  scrivito_route '/',              using: 'homepage'
  scrivito_route '(/)(*slug-):id', using: 'slug_id'
  scrivito_route '/*permalink',    using: 'permalink', format: false
end

--- 
+++ 
@@ -1,9 +1,10 @@
 Rails.application.routes.draw do
-  get 'static_pages/home'
-
   # Render legal documents by using Keiyaku CSS
   # https://github.com/cognitom/keiyaku-css
   resources :docs, only: [:index, :show]
+
+  # Static Pages
+  root "static_pages#home"
 
   # Redirects
   get "/releases/2016/12/12/new-backend", to: redirect('/news/2016/12/12/new-backend')
@@ -19,7 +20,6 @@
 
   # Default Scrivito routes. Adapt them to change the routing of CMS objects.
   # See the documentation of 'scrivito_route' for a detailed description.
-  scrivito_route '/',              using: 'homepage'
   scrivito_route '(/)(*slug-):id', using: 'slug_id'
   scrivito_route '/*permalink',    using: 'permalink', format: false
 end
Change root routing from Scrivito to StaticPages
