Hi folks,
I am hoping you can help me solve a couple of issues I am having with setting up a new sub-domain. Hopefully this will make sense!
Issue 1: Setting up the sub-domain and URL
On the server, I have 1 site folder in the root (/public_html/mySite). I created a new folder in the root (/public_html/mySite2) which will eventually become a test site for the current live one and I set up a CNAME in the Host records for a sub-domain URL - test.mySite.com (Under the Record column it is currently set to the main site name, not an IP).
After speaking with Sonic's support team, they mention I need to add something into my .htaccess to direct test.mySite.com to the correct folder on the server but I am at a loss for how to do this. After some searching I find things like mod_rewrite but not entirely sure if that's the correct way to do it. Any advice on how to get test.mySite.com to go to the correct folder would be greatly appreciated.
Issue 2: Attaching a database to this sub-domain
I have added a new database with the intention of using it for the test site (these are Wordpress sites). However, I can't figure out how to link/connect the 2 together. There is currently a DB linked with the main site. How do I attach/link/connect this new database to the test site?
Many thanks,
Rik
I am hoping you can help me solve a couple of issues I am having with setting up a new sub-domain. Hopefully this will make sense!
Issue 1: Setting up the sub-domain and URL
On the server, I have 1 site folder in the root (/public_html/mySite). I created a new folder in the root (/public_html/mySite2) which will eventually become a test site for the current live one and I set up a CNAME in the Host records for a sub-domain URL - test.mySite.com (Under the Record column it is currently set to the main site name, not an IP).
After speaking with Sonic's support team, they mention I need to add something into my .htaccess to direct test.mySite.com to the correct folder on the server but I am at a loss for how to do this. After some searching I find things like mod_rewrite but not entirely sure if that's the correct way to do it. Any advice on how to get test.mySite.com to go to the correct folder would be greatly appreciated.
Issue 2: Attaching a database to this sub-domain
I have added a new database with the intention of using it for the test site (these are Wordpress sites). However, I can't figure out how to link/connect the 2 together. There is currently a DB linked with the main site. How do I attach/link/connect this new database to the test site?
Many thanks,
Rik