{"id":628,"date":"2017-02-16T09:53:06","date_gmt":"2017-02-16T09:53:06","guid":{"rendered":"https:\/\/www.xsofthost.com\/help\/?p=628"},"modified":"2017-02-16T09:53:06","modified_gmt":"2017-02-16T09:53:06","slug":"how-to-configure-and-remove-a-domain-redirect-in-cpanel","status":"publish","type":"post","link":"https:\/\/www.xsofthost.com\/help\/how-to-configure-and-remove-a-domain-redirect-in-cpanel\/","title":{"rendered":"How to Configure and remove a Domain Redirect in cPanel"},"content":{"rendered":"<h2>cPanel Domain Redirect<\/h2>\n<p class=\"description\">A Domain redirect allows you to make one domain redirect to another domain, either for a website or a specific web page. For example, create a redirect so that www.example.com automatically redirects users to www.example.net.<\/p>\n<h2 class=\"description\">How to Setup Domain Redirect in cPanel<\/h2>\n<ol>\n<li>Login to your <strong>cPanel<\/strong> Control Panel.<\/li>\n<li>In cPanel dashboard locate <strong>Domains<\/strong> Tab then click <strong>Redirect<\/strong> icon.\n<p><a class=\"lightbox-image-link\" title=\"cPanel Redirect.\" href=\"\/knowledgebase\/cpanel-redirect-domain.png\" rel=\"lightbox[583]\" data-lightbox=\"roadtrip\"><br \/>\n <img class=\"thumbnail\" src=\"\/knowledgebase\/cpanel-redirect-domain.png\" alt=\"cPanel Redirect\" \/><br \/>\n <\/a><\/p>\n<\/li>\n<li>From <strong>Add Redirect<\/strong> Page fill the following\n<ol style=\"list-style-type: lower-greek;\">\n<li><strong>Type<\/strong>: you have two option of redirect types\n<ol style=\"list-style-type: lower-roman;\">\n<li><strong>Permanent 301<\/strong> is a redirect that will update the visitor&#8217;s bookmarks and search engines will index the new site url.<\/li>\n<li><strong>Temporary 302<\/strong> is a redirect that will redirect the visitor or search engine but will not update the bookmark, and search engines will remain indexing the original page.<\/li>\n<\/ol>\n<\/li>\n<li><strong>https?:\/\/(www.)?<\/strong> : from the drop down list you have to select the domain you want to redirect , in-case you want to redirect only single page you can add the page name on the next text editor with <strong>\/<\/strong> mark.<\/li>\n<li><strong>Redirects to<\/strong>: type the full URL of the page to which your site will be redirecting.<\/li>\n<li><strong>www. redirection<\/strong>:here you have an option to define the redirection behavior:\n<ol style=\"list-style-type: lower-greek;\">\n<li><strong>Only redirect with www.<\/strong> : with this option only redirects visitors that type www. as part of the URL e.g www.yourdomain.com only will redirect to the new url.<\/li>\n<li><strong>Redirect with or without www.<\/strong> :redirects all visitors from your webiste regardless of if they use www. or not.<\/li>\n<li><strong>Do Not Redirect www.<\/strong> : with this option will not redirect visitors that use www. as part of the URL.<\/li>\n<li><strong>Wild Card Redirect<\/strong> :This will add the the file\/folder name after the url when it redirect. For example, mydomain.com\/hello.html would redirect to mydomain1.com\/hello.html.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<li>Click <strong>Add Button<\/strong> , now your visitors will redirect to the new URL depends on the options you select above.<\/li>\n<\/ol>\n<p><div class=\"well   oscitas-bootstrap-container text-red\"><strong>Do NOT<\/strong> redirect from domain.com to www.domain.com or from domain.com to domain.com\/index.something, this will cause an infinite loop. If you want to do so , <a title=\"How to use RewriteCond and RewriteRule in .htaccess\" href=\"https:\/\/www.xsofthost.com\/help\/how-to-use-rewritecond-and-rewriterule-in-htaccess\/\">you must use <strong>mod_rewrite<\/strong> by adding .htaccess code<\/a>.<\/div> <a class=\"lightbox-image-link\" title=\"cPanel Add Redirect.\" href=\"\/knowledgebase\/cpanel-add-redirect.png\" rel=\"lightbox[583]\" data-lightbox=\"roadtrip\"><br \/>\n <img class=\"thumbnail\" src=\"\/knowledgebase\/cpanel-add-redirect.png\" alt=\"cPanel Add Redirect\" \/><br \/>\n <\/a><\/p>\n<h2 class=\"description\">How to Remove Domain Redirect in cPanel<\/h2>\n<p>To do remove the already configured Domain Redirect in cPanel :<\/p>\n<ol>\n<li>Login to your <strong>cPanel<\/strong> Control Panel.<\/li>\n<li>In cPanel dashboard locate <strong>Domains<\/strong> Tab then click <strong>Redirect<\/strong> icon.<\/li>\n<li>From the Current Redirects List , Select the redirection you want to remove then under <strong>Actions<\/strong>, and click <strong>Delete<\/strong> , confirm the message and click <strong>Remove Redirect button<\/strong>. <a class=\"lightbox-image-link\" title=\"cPanel Current Redirect.\" href=\"\/knowledgebase\/cpanel-current-redirect.png\" rel=\"lightbox[583]\" data-lightbox=\"roadtrip\"><br \/>\n <img class=\"thumbnail\" src=\"\/knowledgebase\/cpanel-current-redirect.png\" alt=\"cPanel Current Redirect\" \/><br \/>\n <\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>cPanel Domain Redirect A Domain redirect allows you to make one domain redirect to another domain, either for a website or a specific web page. For example, create a redirect so that www.example.com automatically redirects users to www.example.net. How to Setup Domain Redirect in cPanel Login to your cPanel Control Panel. In cPanel dashboard locate [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":642,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[4,120,122,121],"_links":{"self":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/628"}],"collection":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/comments?post=628"}],"version-history":[{"count":15,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/628\/revisions"}],"predecessor-version":[{"id":644,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/628\/revisions\/644"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/media\/642"}],"wp:attachment":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/media?parent=628"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/categories?post=628"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/tags?post=628"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}