Skip to content
Help Center

What is a redirect and when should you use one?

Redirect: what it is, what it's for, and how it relates to hosting and control panels within a hosting service.

Quick summary

  • What it is: A redirect is an instruction that causes the server or browser to automatically take someone who accesses a given URL to a different URL.
  • What it's for: it helps manage hosting, files, accounts, performance and service tools.
  • When to check it: when managing your hosting account, uploading files, reviewing resources or needing to make changes from the control panel.

A redirect is an instruction that causes the server or browser to automatically take someone who accesses a given URL to a different URL. The user does not need to do anything: the process happens transparently.

Most common types of redirect

  • 301 redirect (permanent): Indicates that a URL has permanently moved to another address. It is the most commonly used for domain changes, migration to HTTPS or site restructuring. Search engines like Google transfer the SEO value of the old URL to the new one.
  • 302 redirect (temporary): Indicates that content has temporarily moved. Does not transfer SEO value and is used less frequently in production.
  • Email redirect: Forwards all messages received at one email address to another. For example, sending all emails from info@yourdomain.com to your Gmail account.

What are redirects used for?

  • Forcing the site to load in HTTPS instead of HTTP after installing an SSL certificate.
  • Redirecting the domain with www to the domain without www, or vice versa.
  • Changing an old domain for a new one without losing visits or Google rankings.
  • Pointing a deleted page to a new one with similar content.
  • Centralizing multiple emails into a single inbox.

Where are redirects configured?

Redirects can be configured in several places:

  • Control panel (DirectAdmin / cPanel): In the redirects or domains section. This is the simplest way for users without technical knowledge.
  • .htaccess file: For more advanced or bulk redirects on Apache servers.
  • Within the CMS itself: WordPress and other CMSs have plugins or settings to manage redirects.

Common error: redirect loop

If you configure a redirect incorrectly, it can create a redirect loop (the browser shows the error ERR_TOO_MANY_REDIRECTS): URL A redirects to URL B, which in turn redirects to URL A, creating an infinite cycle. This usually occurs when configuring HTTPS when there are already previous redirects in the .htaccess or in the control panel.

Why it matters in hosting

Understanding this concept will help you make better decisions when managing your service. In practice, it relates to managing hosting, files, accounts, performance and service tools. If it appears in a guide, the control panel or a support response, review the context before making changes.

Related articles

  • Shared Hosting
  • Control Panel
  • DirectAdmin
  • cPanel
  • Backup