Comparison Guide

CNAME vs HTTP Redirect

A CNAME is a DNS alias. An HTTP redirect is a web-server or application instruction that tells a browser to go somewhere else.

CNAME

A CNAME changes where a hostname points in DNS. It does not tell a browser to load a different URL path or visibly change the destination page.

HTTP redirect

An HTTP redirect happens after the browser reaches a web server. It is used when you want visitors sent to a new URL, hostname, or path.

Practical takeaway

Use a CNAME for DNS aliasing. Use an HTTP redirect for user-facing URL changes. They solve different layers of the problem.

Browse the full hubs

Jump into broader editorial collections built around comparisons and real-world workflows.