i have created an addon domain in CWP so that i can use it to make a permanent location for 301 redirects from an old .com website to a new .com.au website.
The CWP account is created for the new website and resides in /home/public_html/wordpress with htaccess and index.php in public_html/ (web root directory)
So in dashboard>domains>domains>add domain
creted a new addon domain... /home/user/public_html/domain.com
I created a new index.html file and inserted into /home/user/public_html/domain.com/index.html
My understanding is that to access a temporary URL (when zone records are not yet created for the addon domain) one navigates to
http/s://ipaddress/~username
however, how does one access the addon domain url?
typing http/s://ipaddress/~username/foldername/index.html gives a 404 error in browser
And to add to the above error, CWP is referencing the wordpress htaccess and index.php for the .com.au website from the public_html web root (and trying to load pages from that site instead of the addon domain website)
Obviously i am doing something wrong but I am not sure what that is?
Hi, try to use the hosts file from your computer and open website by the domain name.
Hi Igor,
no i cannot do that...this is a temporary URL.
Access has to be by ipaddress/`user/public_html/addon-domain.com
No a little research and i have found the following...
if an addon domain is located in a subfolder in the website root ...ie public_html/
the htaccess file that is found in the public_html also controls the addon domain as well as the primary domain website. So solution to this as far as i know, is to locate the addon domain outside of public_html/
So the normal way this is done is to have the following structure...
/home/user
-/public_html/primary website/
-/domains/addon-domain/
-/etc/
-/logs/
-/fcgi-bin/
If it is done using the above outlined structure, then the primary domain htaccess file does not impact on the addon domain websites.
So, how can i change CWP so that it organises addon domains outside the public_html/web root directory as shown above (and as is used by other control panels)?
Otherwise, i need to modify the htaccess file to run two wordpress installations in the web root?
At present, the only solution to this that i see is to use Wordpress multisite!
ask you developer how you can do it as root .htaccess is for only root dir for website you can use multiple htaccess for subdir with different rules.
Is mod userdir enabled or disabled in cwp?
Hi,
Quote from: adamjedgar on May 18, 2019, 02:25:36 PM
Is mod userdir enabled or disabled in cwp?
It's should be enabled by default.