Closed lobin-z0x50 closed 2 years ago
以下のように redirect_to でリダイレクト先を指定したい。
redirect_to
# 旧ドメインでアクセスされたら、新ドメインにリダイレクト domain('old.example.com') { redirect_to 'new.example.com' # オプション redirect_to 'new.example.com', status: 302 # HTTPステータス指定 }
以下のように
redirect_to
でリダイレクト先を指定したい。