routes.rbへ以下のように書く.
routes.rb
match '/old' => redirect('/new')
match '/old/:name' => redirect('/new/%{name}')
More than 5 years have passed since last update.
routes.rbへ以下のように書く.
match '/old' => redirect('/new')
match '/old/:name' => redirect('/new/%{name}')
Register as a new user and use Qiita more conveniently