neogenia-jp/EzGate

リダイレクト機能

Closed this issue · 0 comments

以下のように redirect_to でリダイレクト先を指定したい。

# 旧ドメインでアクセスされたら、新ドメインにリダイレクト
domain('old.example.com') {
  redirect_to 'new.example.com'

  # オプション
  redirect_to 'new.example.com', status: 302   # HTTPステータス指定
}