HF RL Explorer

Task: Implement URL Redirect Middleware for Rails Application

Task: Implement URL Redirect Middleware for Rails Application: a task in Terminal-Lego-15k (Harbor dataset). Create a Rack middleware for a Rails 3+ application that redirects all incoming requests to the canonical URL format: https://www. prefixed domain, preserving the request path and query…

The task

Create a Rack middleware for a Rails 3+ application that redirects all incoming requests to the canonical URL format: `https://www.` prefixed domain, preserving the request path and query string.

Part of PrimeIntellect/Terminal-Lego-15k.