All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Cpanel Add On Domain
Hi,
I am very new to CPanel, I am used to configuring stuff using command line. I am pulling my hair now.
My primary domain is abc.com, so root of my website is in /home/abc/public_html
I used softaculous to install wordpress and It was ok. If I enter abc.com in my browser, it loads alright.
Then I added a new domain Using Addon Domains.
New Domain Name: def.com
Subdomain : def
Document Roo: def.com
So Cpanel created /home/abc/def.com directory. Then I use softaculous to install a wordpress there (no subdirectory). But when I vidit def.com, it shows abc.com
But if I install to a subdirectory, E.g. /home/abc/def.com/wp, and point my browser to def.com/wp it loads ok.
Kindly help. I thought cPanel is easier.
Comments
Clearly sounds like a bug somewhere - I'm not able to reproduce it in any of our environments
Have you tried putting a file without Softaculous?
If it's a Softaculous bug, installing Wordpress manually it's easy.
I entered this in my browser and loads ok http://def.com/2017/06/14/hello-world/
It seems just the home / of def.com is not working. Maybe just .htaccess issue.
Working now, I added this to the primary domain wp-config.php
define('WP_HOME','http://abc.com');
define('WP_SITEURL','http://abc.com');
and this to the other one
define('WP_HOME','http://def.com');
define('WP_SITEURL','http://def.com');
It redirects to domain abc.com or it shows the content of abc.com?
redirects. But if I go to http://def.com/some-post then it is ok
Will recommend to backup that account and recreate it. Am sure this will fix the issue.
Its working now with my changes in wpconfig