Changing primary domain to parked domain issue
I had a customer request to change his domain from domain.cl to domain.net, and the old domain to the new one.
I looked through the forums and it seemed pretty straight forward. In WHM, I went to modify an account, changed the domain name to domain.net, and parked domain.cl.
I thought this would make both domains point to domain.net, or at least that domain.net would show up in the URL, but it isn't happening. Domain.net is redirecting to domain.cl.
I tried to create a redirect from domain.cl to domain.net and got a "redirect to many times" error when loading the page.
I am clearly not understanding this correctly. Why would the primary domain redirect to a parked domain? How should I try and fix this?
-
Hi @roadpaperweight Was domain.net already added to the account prior to making these changes? Can you show me the contents of the following of course switching the domain names to domain.cl and domain.net before posting: grep DNS /var/cpanel/users/$username cat /var/cpanel/userdata/$username/main0 -
Hi @roadpaperweight Was example.net already added to the account prior to making these changes? Can you show me the contents of the following of course switching the domain names to example.com and example.net before posting:
grep DNS /var/cpanel/users/$username cat /var/cpanel/userdata/$username/main
Thanks for the response. The original domain was example.com. The new domain is example.net. What I did was modify account > changed the domain name to example.net which had never been on the server before. I then parked example.com. grep DNS /var/cpanel/users/$user output DNS=example.net DNS1=example.com cat /var/cpanel/userdata/$username/main output --- addon_domains: {} main_domain: example.net parked_domains: - example.com sub_domains: [] I also went to redirect-checker.org/ to see what is says and for the new domain, example.net it gave me >>> example.net> -------------------------------------------- > 301 Moved Permanently > -------------------------------------------- Status: 301 Moved Permanently Code: 301 Date: Wed, 11 Apr 2018 17:55:44 GMT Server: Apache X-Pingback: http://example.com/xmlrpc.php Upgrade: h2,h2c Connection: Upgrade, close Location: https://example.com/ Content-Type: text/html; charset=UTF-8
>>> example.com> -------------------------------------------- > 200 OK > -------------------------------------------- Status: 200 OK Code: 200 Date: Wed, 11 Apr 2018 17:55:46 GMT Server: Apache X-Pingback: https://example.com/xmlrpc.php Link: https://example.com/wp-json/; rel="", <0 -
Hi @roadpaperweight please note that I removed the actual domain name from the post. Originally the domain was example.com - in the documentroot for this do you have a CMS installed (like wordpress?) After you modified the domain to example.net did you also update the site URL information? Thank you, 0 -
Hi @roadpaperweight please note that I removed the actual domain name from the post. Originally the domain was example.com - in the documentroot for this do you have a CMS installed (like wordpress?) After you modified the domain to example.net did you also update the site URL information? Thank you,
Wow. How embarrassing. That was the problem. Thanks for you help. I really appreciate it.0 -
Hi @roadpaperweight No worries, you're most welcome! I'm happy we found the cause of the issue! Thank you, 0
Please sign in to leave a comment.
Comments
5 comments