> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.ex2.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to set up a redirection via cPanel?

If you want to add a permanent redirect (301) or a temporary redirect (302), you can do so via the [cPanel control panel](https://help.ex2.com/en/article/what-is-cpanel-vq3toz/?bust=1784206091492).

## The steps to set up a redirection via cPanel

1. [Log in to your cPanel](https://help.ex2.com/en/article/how-to-log-in-to-my-cpanel-account-xyoqm0/?bust=1676305236426).

2. In the **Domains** section, click the **Redirects** icon.

![](https://storage.crisp.chat/users/helpdesk/website/52421894134f0400/redirections1_1x04mzy.jpg)

3. You will be redirected to a redirect management page where you can easily create redirects for www and https.
 
![](https://storage.crisp.chat/users/helpdesk/website/52421894134f0400/redirections3_1ear6bv.jpg)

4. By opening the Type field, you can easily select 301 and 302 redirects. 

![](https://storage.crisp.chat/users/helpdesk/website/52421894134f0400/redirections2_9u578z.jpg)

5. Once you have completed the various fields, click the **Add** button to have the redirect apply. 