<div dir="ltr">I am trying to understand which option would result in more efficient HTTP redirection. I am trying to redirect ^/address page to ^/contact page.<div><br></div><div>Option 1:</div><div>rewrite ^/address /contact permanent; </div><div><br></div><div>Option 2:</div><div>location ~ ^/address {</div><div>  return 301 $scheme://$host/contact</div><div>}</div><div><br></div><div>Which option should be preferred? Both options involve regex and I am not sure which one will be faster. Are there any other better options?</div><div><br></div><div>-N</div><div><br></div></div>