With cPanel, you can easily set up redirects for pages on your domains. It only requires that the domain you want to redirect is added as an add-on domain.
Here's what you need to do:
Log in to cPanel: Log in to your cPanel account.
Go to Redirects: Navigate to "Redirects" in your cPanel. The exact wording might vary based on whether you're using the English or Danish version of cPanel
Choose the Type: First, choose the type of redirect. Use 301 for permanent redirects (when a page has permanently moved to a new address) and 302 for temporary redirects (when a URL might have content again in the future).
Select the Domain and Path: Choose the domain on your account for which you want to create the redirect. If you want to redirect only the homepage, leave the path field empty (/).
Specify the Redirect To: In "Redirects To," you can either specify internal paths on your site or an entirely different domain. If it's another domain, remember to include https:// and possibly www to get the full URL, for example, https://www.google.com/.
Wild card Redirects: Wild card redirects mean that if you've redirected domain1.dk to domain2.dk, visiting domain1.dk/test.html would redirect to domain2.dk/test.html.
It's important to note that this cPanel function isn't suitable for full site catch-all redirects. If you have a site with many pages, and you want to redirect everything to a specific page, manually entering each URL redirect in cPanel would be cumbersome.
In such cases, it's recommended to use an .htaccess file where you can set up the necessary rules yourself. Check out guides online for more information on how to use .htaccess for redirects.