{"id":5086,"date":"2021-10-15T18:52:46","date_gmt":"2021-10-15T18:52:46","guid":{"rendered":"https:\/\/www.cldy.com\/support\/?post_type=docs&p=5086"},"modified":"2022-09-18T00:19:13","modified_gmt":"2022-09-17T16:19:13","password":"","slug":"how-to-redirect-a-domain-to-another-domain","status":"publish","type":"docs","link":"https:\/\/www.cldy.com\/support\/help\/how-to-redirect-a-domain-to-another-domain\/","title":{"rendered":"How to Redirect a Domain to Another Domain?"},"content":{"rendered":"\r\n
Redirecting a domain is the process of pointing a web address or domain, including subdomains, to another domain or subdomain, for a certain purpose.\u00a0<\/p>\r\n\r\n\r\n\r\n
<\/p>\r\n\r\n\r\n\r\n
<\/p>\r\n
Now that you understand why you might consider redirecting certain domains to a specific website or domain that you own, here are the steps on how to redirect your domains.\u00a0<\/p>\r\n\r\n\r\n\r\n
<\/p>\r\n\r\n\r\n\r\n
<\/p>\r\n
<\/p>\r\n\r\n\r\n\r\n
<\/p>\r\n
<\/p>\r\n\r\n\r\n\r\n
<\/p>\r\n
<\/p>\r\n\r\n\r\n\r\n
<\/p>\r\n
<\/p>\r\n\r\n\r\n\r\n
<\/p>\r\n
<\/p>\r\n\r\n\r\n\r\n
<\/p>\r\n
<\/p>\r\n\r\n\r\n\r\n
<\/p>\r\n\r\n\r\n\r\n
<\/p>\r\n
<\/p>\r\n\r\n\r\n\r\n
<\/p>\r\n\r\n\r\n\r\n
You may notice that there\u2019s a section labeled \u201cCurrent Redirects.\u201d these are the Redirects you\u2019ve already set, and you can configure it from there.<\/p>\r\n
<\/p>\r\n\r\n\r\n\r\n
Replace the domain name with your domain name, and add the code to the first line of your .htaccess file<\/p>\r\n
Method 1 (If you are replacing the domain only, all files and folders link remain)<\/p>\r\n
\r\nRewriteEngine On
RewriteCond %{SERVER_PORT} 80 [OR]
RewriteCond %{SERVER_PORT} 443 [OR]
RewriteRule ^(.*)$ https:\/\/replacewithyourdomain.com\/$1 [R,L]<\/p>\r\n<\/blockquote>\r\nMethod 2 (If you are replacing the domain, and also have a new website, which have different files and folders)<\/p>\r\n
\r\nRewriteEngine on
Redirect 301 \/ http:\/\/replacewithyourdomain.com\/<\/p>\r\n<\/blockquote>\r\nMethod 3 (Same as method 2, but more commonly used)<\/p>\r\n
\r\nRewriteEngine on
RewriteCond %{HTTP_HOST} ^replacewithyourolddomain.net [NC,OR]
RewriteCond %{HTTP_HOST} ^www.replacewithyourolddomain.net [NC]
RewriteRule ^(.*)$ http:\/\/replacewithyourdomain.com\/ [L,R=301,NC]<\/p>\r\n<\/blockquote>\r\n\r\n\r\n\r\n<\/p>\r\n
Cheers to successfully implementing a domain Redirect!<\/p>\r\n
If you are a CLDY customer, send us a support request, and we will implement it for you at no cost.<\/p>\r\n","protected":false},"excerpt":{"rendered":"
Redirecting a domain is the process of pointing a web address or domain, including subdomains, to another domain or subdomain, for a certain purpose.\u00a0 Why domain redirect? You\u2019re moving websites, and you want all the traffic directed from the old domain to the new one.\u00a0 You\u2019re running ads or marketing campaigns, and you want […]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[47,33,31],"doc_tag":[],"class_list":["post-5086","docs","type-docs","status-publish","hentry","doc_category-cpanel","doc_category-domain","doc_category-web-hosting"],"year_month":"2026-06","word_count":725,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"cldy","author_nicename":"loriecldy","author_url":"https:\/\/www.cldy.com\/support\/author\/loriecldy\/"},"doc_category_info":[{"term_name":"cPanel","term_url":"https:\/\/www.cldy.com\/support\/help-category\/cpanel\/"},{"term_name":"Domain","term_url":"https:\/\/www.cldy.com\/support\/help-category\/domain\/"},{"term_name":"Web Hosting","term_url":"https:\/\/www.cldy.com\/support\/help-category\/web-hosting\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/docs\/5086","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/comments?post=5086"}],"version-history":[{"count":9,"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/docs\/5086\/revisions"}],"predecessor-version":[{"id":7944,"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/docs\/5086\/revisions\/7944"}],"wp:attachment":[{"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/media?parent=5086"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/doc_category?post=5086"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/doc_tag?post=5086"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}