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