{"id":264,"date":"2025-11-12T13:42:06","date_gmt":"2025-11-12T13:42:06","guid":{"rendered":"https:\/\/www.jolt.co.uk\/kb\/?p=264"},"modified":"2025-11-12T13:42:10","modified_gmt":"2025-11-12T13:42:10","slug":"creating-a-redirect","status":"publish","type":"post","link":"https:\/\/www.jolt.co.uk\/help\/creating-a-redirect\/","title":{"rendered":"Creating a redirect"},"content":{"rendered":"\n<p>There&#8217;s a handful of use cases for redirecting one domain to another and a couple of methods that can be used to achieve it. This guide will walk you through each method.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Option 1, Using an Alias domain.<\/h2>\n\n\n\n<p>1.&nbsp;<strong>Login to your cPanel account<\/strong>. When you first set up an account with us, you would have received an email with the details on how you can gain access to your control panel. If you have lost those details, feel free to raise a support ticket or call in.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>2. Navigate to <strong>Domains<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"744\" src=\"https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/Domains-1024x744.png\" alt=\"\" class=\"wp-image-269\" srcset=\"https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/Domains-1024x744.png 1024w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/Domains-300x218.png 300w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/Domains-768x558.png 768w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/Domains-770x560.png 770w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/Domains.png 1193w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>3. Click <strong>Create A New Domain<\/strong> to add a new domain.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"745\" src=\"https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/AddNewDomain-1024x745.png\" alt=\"\" class=\"wp-image-273\" srcset=\"https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/AddNewDomain-1024x745.png 1024w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/AddNewDomain-300x218.png 300w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/AddNewDomain-768x559.png 768w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/AddNewDomain-770x560.png 770w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/AddNewDomain.png 1193w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"banner-note\">\ud83d\udca1<strong>Note: <\/strong>When adding additional domains in cPanel it&#8217;s important to take note of the <strong>Share document root <\/strong>option, as this is the setting that will differentiate between adding an <strong>Alias domain<\/strong> and an <strong>Addon domain<\/strong>. <strong>Alias domains <\/strong><em>share the document root<\/em> with the <strong>Primary domain<\/strong> on the account, so make sure you leave this option enabled to create an <strong>Alias domain<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"744\" src=\"https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/AddNewDomain2-1024x744.png\" alt=\"\" class=\"wp-image-272\" srcset=\"https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/AddNewDomain2-1024x744.png 1024w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/AddNewDomain2-300x218.png 300w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/AddNewDomain2-768x558.png 768w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/AddNewDomain2-770x559.png 770w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/AddNewDomain2.png 1195w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>4. Click <strong>Submit<\/strong> to add the domain, or <strong>Submit And Create Another <\/strong>if you&#8217;re adding multiple domains. <\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>5. That&#8217;s it, you&#8217;ve now added an <strong>Alias domain<\/strong> to your account which will redirect to your <strong>Primary domain<\/strong>. But what if you want it to redirect to a different domain on the account, or perhaps a domain in a separate account etc. That leads us into the second method;<\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading\">Option 2, <strong>HTTP Redirects<\/strong>.<\/h2>\n<\/div><\/div>\n\n\n\n<p>This option sounds more intimidating than it really is, it essentially just means creating a redirect\/rule that the server uses to determine where visitors should be sent when visiting your domain. <br><br>For example, you want people who visit domain<strong> A<\/strong> to go to domain<strong> B<\/strong>, but domain<strong> B<\/strong> is on a separate account. Using a <strong>HTTP redirect<\/strong> (also sometimes known as a 301\/302 redirect) is basically just a rule that says if a visitor tries to go to domain <strong>A<\/strong>, instead of trying to show them the website under domain <strong>A<\/strong>, send them over to domain <strong>B <\/strong>and show them that website.<\/p>\n\n\n\n<p>There&#8217;s two methods for setting up <strong>HTTP Redirects<\/strong>, so we&#8217;ll break them down in to part 1 and 2. (The following sections also assume that you&#8217;re already logged into your cPanel account).<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<h3 class=\"wp-block-heading\">HTTP Redirects, Part 1.<\/h3>\n<\/div><\/div>\n\n\n\n<p>1. Navigate to <strong>Redirects.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"744\" src=\"https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/Redirects-1024x744.png\" alt=\"\" class=\"wp-image-277\" srcset=\"https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/Redirects-1024x744.png 1024w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/Redirects-300x218.png 300w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/Redirects-768x558.png 768w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/Redirects-770x560.png 770w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/Redirects.png 1193w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>2. You&#8217;ll now been shown a few different options, some can be left as default while others are dependant on what you want to redirect and to where. The screenshot shows an example of a basic redirect;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"743\" src=\"https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/ExampleRedirect-1024x743.png\" alt=\"\" class=\"wp-image-276\" srcset=\"https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/ExampleRedirect-1024x743.png 1024w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/ExampleRedirect-300x218.png 300w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/ExampleRedirect-768x557.png 768w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/ExampleRedirect-770x558.png 770w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/ExampleRedirect.png 1194w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>3. Click <strong>Add <\/strong>to save the redirect.<\/p>\n\n\n\n<p class=\"banner-note\">\ud83d\udca1<strong>Note: <\/strong>The redirects created through this method will be added to your domains <strong>.htaccess <\/strong>file which can be found in the domains <strong>document root<\/strong> (e.g. <strong>Alias domains <\/strong>and the <strong>Primary domain<\/strong> on the account will use the <strong>public_html<\/strong> folder as their <strong>document root<\/strong>).<br><br>On smaller sites this isn&#8217;t usually an issue, however larger sites and\/or sites with several plugins may conflict with the redirects that are added due to the way the <strong>.htaccess <\/strong>file is read by the server.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">HTTP Redirects, Part 2.<\/h3>\n\n\n\n<p class=\"banner-warning\">\u26a0\ufe0f <strong>Important: <\/strong>This is a more manual approach to creating redirects and assumes you have some knowledge of how to use cPanel&#8217;s <strong>File Manager<\/strong> and\/or <strong>FTP Accounts <\/strong>to access and modify files.<\/p>\n\n\n\n<p>1. Navigate to your domains <strong>document root<\/strong> and locate the <strong>.htaccess <\/strong>file. In this guide we&#8217;re using poldice.com as an example, which uses the <strong>public_html<\/strong> as it&#8217;s <strong>document root<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"743\" src=\"https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/FileManagerHtaccess-1024x743.png\" alt=\"\" class=\"wp-image-280\" srcset=\"https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/FileManagerHtaccess-1024x743.png 1024w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/FileManagerHtaccess-300x218.png 300w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/FileManagerHtaccess-768x557.png 768w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/FileManagerHtaccess-770x559.png 770w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/FileManagerHtaccess.png 1195w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>2. Edit the <strong>.htaccess <\/strong>file and add the following to the top;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>RewriteEngine On\nRewriteCond %{HTTP_HOST} ^(www.)?<em>&lt;domain-to-be-redirected-goes-here&gt;<\/em>$\nRewriteRule ^(.*)$ https:\/\/<em>&lt;domain-being-redirected-to-goes-here&gt;<\/em>\/$1 &#91;R=301,L]<\/code><\/pre>\n\n\n\n<p class=\"banner-note\">\ud83d\udca1<strong>Note: <\/strong>You&#8217;ll need to replace where it says <em>&lt;domain-to-be-redirected-goes-here&gt;<\/em> and <em>&lt;domain-being-redirected-to-goes-here&gt;<\/em> with the actual\/full domains you&#8217;re using.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>3. Click <strong>Save<\/strong> <strong>Changes<\/strong> to save the redirect.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"745\" src=\"https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/HtaccessSave-1024x745.png\" alt=\"\" class=\"wp-image-325\" srcset=\"https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/HtaccessSave-1024x745.png 1024w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/HtaccessSave-300x218.png 300w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/HtaccessSave-768x558.png 768w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/HtaccessSave-770x560.png 770w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/11\/HtaccessSave.png 1195w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"banner-note\">\ud83d\udca1<strong>Note: <\/strong>As mentioned earlier in the guide, due to the way the server reads the <strong>.htaccess<\/strong> file the redirects may cause conflicts with other rules\/code in the <strong>.htaccess <\/strong>file, preventing certain rules\/code from working properly. This is because the <strong>.htaccess<\/strong> file is read in a hierarchical format (i.e. it&#8217;s read from top to bottom), where rules\/code written at the top will take priority over those written lower down.<br><br>Not all rules\/code will conflict, but it&#8217;s worth keeping in mind that some will and the rules\/code that are closer to the top of the <strong>.htaccess <\/strong>file will override the rules\/code lower down.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>That&#8217;s it, you&#8217;ve now setup a redirect for your domain. Please keep in mind however that caching mechanisms (e.g. browser cache or caching plugins etc) can sometimes interfere with redirects causing them to appear not to work, simply clearing the cache will usually fix this.<\/p>\n\n\n\n<p>If you are running into any issues or have any further questions or concerns, please don\u2019t hesitate to get in touch.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There&#8217;s a handful of use cases for redirecting one domain to another and a couple of methods that can be used to achieve it. This guide will walk you through each method. Option 1, Using an Alias domain. 1.&nbsp;Login to your cPanel account. When you first set up an account&hellip;<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,3],"tags":[],"class_list":["post-264","post","type-post","status-publish","format-standard","hentry","category-advanced-techniques","category-cpanel"],"_links":{"self":[{"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/posts\/264","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/comments?post=264"}],"version-history":[{"count":44,"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/posts\/264\/revisions"}],"predecessor-version":[{"id":342,"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/posts\/264\/revisions\/342"}],"wp:attachment":[{"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/media?parent=264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/categories?post=264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/tags?post=264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}