Skip to content
We Sort.

Redirect alias and legacy domains with Nginx

This is useful when a domain is changed or when multiple domains (eg: .co.uk, .com, etc) are held.

  • This passes on the path, eg: /contact-us, as part of the redirect

  • When using a separate 'site' in Laravel Forge.

  • Update the config (see gist)

  • Then add each domain and issue a certificate

GitHub Gist > wesort > nginx-config.md

tf-2x2-01
s-2x2-01
tf-2x2-01
cb-2x2-01