Build 301/302 redirect snippets for Apache (.htaccess) or Nginx (server { }): HTTP→HTTPS, www/apex canonical hosts and page redirects. Review before deploying — a bad rule loops a site (test Nginx with nginx -t).
.htaccess
server { }
nginx -t
All 77 tools in Algorithms & Computer Science →