```ruby
Rails.application.routes.draw do
  root to: redirect('/register')
  get '/register', as: 'new_user_profile', to: 'user_profiles#new'
  post '/register', as: 'user_profile', to: 'user_profiles#create'
end
```

Allow environment to configure root redirect
user
```ruby
Rails.application.routes.draw do
  root to: redirect(ENV.fetch('ROOT_REDIRECT', '/register'))

  get '/register', as: 'new_user_profile', to: 'user_profiles#new'
  post '/register', as: 'user_profile', to: 'user_profiles#create'
end
```
assistant