Author Topic: addon domain temporary url not working  (Read 9803 times)

0 Members and 1 Guest are viewing this topic.

Offline
**
addon domain temporary url not working
« on: May 15, 2019, 10:57:34 PM »
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?

Offline
*****
Re: addon domain temporary url not working
« Reply #1 on: May 16, 2019, 07:47:45 AM »
Hi, try to use the hosts file from your computer and open website by the domain name.
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
**
Re: addon domain temporary url not working
« Reply #2 on: May 16, 2019, 08:48:39 AM »
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!

Offline
*****
Re: addon domain temporary url not working
« Reply #3 on: May 17, 2019, 01:06:12 PM »
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.

Offline
**
Re: addon domain temporary url not working
« Reply #4 on: May 18, 2019, 02:25:36 PM »
Is mod userdir enabled or disabled in cwp?

Offline
*****
Re: addon domain temporary url not working
« Reply #5 on: May 18, 2019, 02:42:49 PM »
Hi,

Is mod userdir enabled or disabled in cwp?

It's should be enabled by default.
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services