> ## Documentation Index
> Fetch the complete documentation index at: https://help.noxity.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Redirects

> Send a URL on your domain to another URL. 301 permanent or 302 temporary, with or without the path appended, on one domain or all of them.

The Redirects tool writes URL-level redirect rules into your `.htaccess` for you. You pick the source, the target, and the type, and cPanel handles the rest.

Open it from cPanel home → **Domains** → **Redirects**.

<Frame caption="Redirects tool with the create form and existing rules below">
  <img src="https://mintlify.s3.us-west-1.amazonaws.com/noxity/images/cpanel/domain-management/redirects/listing-light.png" alt="Redirects page showing the create form and the list of active redirects" className="block dark:hidden" />

  <img src="https://mintlify.s3.us-west-1.amazonaws.com/noxity/images/cpanel/domain-management/redirects/listing-dark.png" alt="Redirects page showing the create form and the list of active redirects" className="hidden dark:block" />
</Frame>

## 301 vs 302

| Type      | Code | When to use                                                                    |
| --------- | ---- | ------------------------------------------------------------------------------ |
| Permanent | 301  | The page has moved for good. Browsers and search engines remember the new URL. |
| Temporary | 302  | Short-term redirect. Browsers re-check the original URL on every visit.        |

Pick **301** for almost everything: domain migrations, restructured site sections, retired pages. Use **302** for genuinely temporary redirects (an event landing page that should expire, an A/B test).

## Create a redirect

<Steps>
  <Step title="Pick the type">
    Choose **Permanent (301)** or **Temporary (302)** from the dropdown.
  </Step>

  <Step title="Choose the source domain">
    The **https?://([www](http://www).)?** dropdown lets you pick a single domain or apply the rule to all domains on the account.
  </Step>

  <Step title="Type the source path">
    Leave blank to redirect the whole domain. Type `/old-page` to redirect a single URL. Trailing slash matters: `/blog` and `/blog/` are different paths.
  </Step>

  <Step title="Type the destination URL">
    Full URL, including `https://`. cPanel sends the visitor here.
  </Step>

  <Step title="Pick a www handling">
    * **Only redirect with [www](http://www).** The rule fires only when the visitor types `www.yourdomain.com`.
    * **Redirect with or without [www](http://www).** The rule fires either way. Pick this for most cases.
    * **Do Not Redirect [www](http://www).** The rule fires only on the bare hostname.
  </Step>

  <Step title="Decide on Wild Card Redirect">
    Tick this if the source path should be appended to the destination URL.

    With Wild Card on, `mybrand.com/blog/post-1` redirects to `newbrand.com/blog/post-1`. With it off, every URL goes to `newbrand.com` regardless of path.
  </Step>

  <Step title="Click Add">
    The rule is live immediately. Test it in a browser, ideally in a private window so cached redirects don't fool you.
  </Step>
</Steps>

## Common patterns

### Redirect www to root (or vice versa)

Pick one canonical version and stick with it. Search engines treat `www.mybrand.com` and `mybrand.com` as separate sites otherwise.

* Source: leave path blank, source domain `mybrand.com`, www handling **Only redirect with www**.
* Destination: `https://mybrand.com/`.
* Type: 301.
* Wild Card: on.

### Force HTTPS

The cleaner way is the **Force HTTPS Redirect** toggle in the [Domains tool](/web-hosting/cpanel/domain-management/domains). If you want a manual `.htaccess` rule instead, use Redirects with `http://` source and `https://` destination.

### Migrate a domain

Old domain `oldbrand.com`, new domain `newbrand.com`, want every page to follow.

* Type: 301.
* Source domain: `oldbrand.com`.
* Path: blank.
* Destination: `https://newbrand.com/`.
* www handling: **Redirect with or without www**.
* Wild Card: on.

Visitors hitting `oldbrand.com/about` land on `newbrand.com/about`. Search engine link equity carries over.

### Retire a single page

* Type: 301.
* Source domain: `mybrand.com`.
* Path: `/old-product`.
* Destination: `https://mybrand.com/products`.
* Wild Card: off.

## Remove or edit a redirect

The Redirects tool doesn't have an edit button. To change a rule, **Remove** the existing one and create a new one. Same applies if you typed the destination wrong.

If a redirect won't go away, your `.htaccess` is the source of truth. Open [File Manager](/web-hosting/cpanel/file-management/file-manager), enable **Show Hidden Files**, and delete the rule directly from `public_html/.htaccess`.

## Common issues

<AccordionGroup>
  <Accordion title="Redirect loop in the browser">
    Usually a www redirect fighting an HTTPS redirect. Pick one canonical URL (root or www, http or https) and make every other variant land on it in a single hop.
  </Accordion>

  <Accordion title="Redirect ignores the path I typed">
    Wild Card needs to be on for the source path to carry over. Off, every visit lands on the destination root.
  </Accordion>

  <Accordion title="Cached redirect won't update">
    301 redirects are cached aggressively by browsers. Test in a private window or a different browser, or clear your local cache.
  </Accordion>

  <Accordion title="Redirect breaks WordPress permalinks or other dynamic apps">
    cPanel writes redirect rules at the top of `.htaccess`, before the `# BEGIN WordPress` block. If a redirect targets a path that's also a WordPress route, the redirect wins. Either reorder rules manually in [File Manager](/web-hosting/cpanel/file-management/file-manager) or scope the redirect more narrowly.
  </Accordion>
</AccordionGroup>

## Need a hand?

<CardGroup cols={2}>
  <Card title="Open a ticket" icon="life-ring" href="https://members.noxity.io/submitticket.php">
    Best for anything that needs an account check or a config change on our end.
  </Card>

  <Card title="Live chat" icon="messages" href="https://noxity.io/contact">
    Faster for quick questions during business hours.
  </Card>
</CardGroup>
