How do I redirect a domain to another website?

Updated October 2026 · How we answer

Short answerYou redirect a domain by setting up a redirect rule at your domain registrar or web host, typically using a 301 (permanent) or 302 (temporary) redirect. This is often done through DNS settings or a redirect service in your hosting control panel.

Types of Redirects

There are two main types of redirects: 301 (permanent) and 302 (temporary). A 301 redirect tells search engines that the old domain has permanently moved to the new one, passing along SEO value. A 302 redirect indicates a temporary move and is useful for maintenance pages or A/B testing. For most cases where you've changed your domain name, you'll want a 301.

You can also redirect specific pages or entire domains. Domain-level redirects forward all traffic from one domain to another, while page-level redirects forward only certain URLs. The method you choose depends on your goal.

How to Set Up a Redirect

The exact steps vary by provider, but generally you'll find a 'Redirect' or 'Forwarding' option in your domain registrar's control panel or your web hosting dashboard. You'll enter the destination URL and select the redirect type. Some registrars offer free forwarding, while others may charge a fee.

If you have access to your web server, you can also set up redirects using server configuration files like .htaccess (for Apache) or nginx.conf (for Nginx). This gives you more control, such as redirecting based on specific conditions. For example, in .htaccess you can use the Redirect 301 directive.

  • Log in to your domain registrar or hosting control panel.
  • Find the domain forwarding or redirect section.
  • Enter the destination URL (e.g., https://www.newsite.com).
  • Choose redirect type: 301 (permanent) or 302 (temporary).
  • Enable forwarding and save changes.
  • Test the redirect by visiting your old domain.

Considerations and Best Practices

When redirecting, ensure the destination URL is correct and uses the right protocol (http vs. https). Avoid redirect chains (multiple redirects in a row) as they slow down page load and can confuse search engines. Also, update any internal links and sitemaps to point directly to the new domain to avoid relying on redirects indefinitely.

If you're redirecting to a different domain, you may need to set up the destination domain to accept the traffic. For SEO, use 301 redirects and keep them in place for at least a year, or permanently if you want to preserve link equity. Finally, monitor for errors like 404s after the redirect is live.

Common mistakes

  • Using a 302 redirect when you intend a permanent move, which can dilute SEO value over time.
  • Redirecting to a URL that doesn't exist or has a typo, resulting in a broken user experience.
  • Forgetting to redirect both the www and non-www versions of the domain, leaving some visitors stranded.
From our shopsPhoneCasesForAll: 50,000+ aesthetic cases — Y2K, coquette, cottagecore and more.