In SWIZZHosting you have the possibility to create a test environment. This option is useful if you want to keep your current and existing website accessible to your visitors while you work on a new website or improvements in parallel. In a test environment, only you will see the new content and changes until you officially publish them.
The first step is to associate the hosting package with the domain.
IMPORTANT
This association is only for the activation of the product! No changes will be made regarding the visualization of the website, which is currently located on the main domain!
Then proceed according to the following process:
2. Click Configure next to the package you want to activate
3. Enter the domain name and email address of the administrator for this hosting package.
4. Click on Confirm
You have now activated your desired SWIZZHosting and enter the cPanel. There are two possibilities to set up a test environment for the website:
The simplest method to set up a test environment is to configure a test subdomain (e.g. test.swizzhosting.com). You can publish and view the test website by entering test.swizzhosting.com. If you enter www.swizzhosting.com instead, your visitors will still visit the official website. Once the tests are completed and the content is ready to be published, you can move it from test.swizzhosting.com to www.swizzhosting.com.
2. Enter the subdomain name and select the domain on which you want to create the subdomain. Click Create.
In the last field Document Root leave what the system suggests by default.
3. Save all the files you need on your web space (storage space), in the subdomain (subdomain) folder
4. Test your website by going directly to the URL of the subdomain (example: http://test.swizzhosting.com
When you are finished with your website, move the files to the /public_html folder and edit the domain link.
In this procedure it is recommended to change a system file on your computer. Errors in the procedure can lead to malfunctions or errors when browsing the Internet. Always save a backup copy of the file you want to change before making any changes, so that you can restore it in case of problems! If you are unsure whether you should make this change, we recommend that you use the first method (creating a test subdomain)!
If you do not want to create a subdomain, but only want to display the new website on your computer, you can configure this using the host file. After configuration, only you will reach your domain on the platform of your Linux hosting, while other visitors will continue to reach the current platform. Proceed as follows:
4. Click on File and then on Save
Now, when visiting your site, you will see the new hosting space, while all other visitors will continue to view your official site!
2. Copy this line into your terminal:
sudo vim /etc/hosts
3. Enter your Mac's administrative password
4. Press the i key and navigate down using the arrow keys.
5. Now go to the bottom of the file and type <your Linux hosting IP Address> <your domain>
6. Press the ESC key and enter :wq and finish with the Enter key
When visiting your site, you will see the new hosting space, while all other visitors will continue to view your official site!
Contact our experts, they will be happy to help!
Contact us