V tomto návodu se dočtete:
To set up another separate website, you need NoLimit or NoLimit Extra Webhosting with an alias. If you do not have an alias set, first add it according to the guide Webhosting – Aliases.
- How to set up multihosting
- How to create a separate website via:
- Common issues
- Frequently asked questions
Multihosting Setup
Separate alias sites work according to the following diagram:
- On FTP, in the www folder, there is a domains folder that allows the hosting to distinguish between the domains, and an .htaccess file that directs requests to the domains.
- In the domains folder there are subfolders with the full names of individual domains or subdomains on the Webhosting (without www).
To run separate websites using aliases on different domains on one Webhosting, first log into FTP (see this guide for file management instructions) and make sure that:
- The Webhosting includes the default .htaccess file in the www folder.
- The current website files are located in the www/domains folder.
If you have your current website in the www folder, follow these steps:
- In www/domains, create a new folder with the domain name (without the www).
- Move the contents of the www folder, except the domains and subdom folders, into the newly created folder.
- Restore the default .htaccess file by following this guide.
Create New Separate Website
If the Webhosting FTP structure is prepared to host separate websites according to the Multihosting Setup chapter, decide how you want to set up the new site:
- If you have a website ready on your computer in the form of html, css, js, php and other files, upload it via FTP.
- If you want to create a new website using a content management system such as WordPress, you can set it up using the app installer.
- If you want to move the new website from another existing web hosting service, either ours or a competitor’s, you can use the automatic migration tool.
Separate Website via FTP
Set up separate websites for aliases in the www/domains folder. Follow these steps:
- Log into FTP.
- Navigate to the www/domains folder.
- Create a new directory with the name of the (sub)domain (without www).
- Upload the web files into this directory.
If you upload the installation files of an application, such as the WordPress content management system, to this folder, make sure that the web runs from this folder and not a sub-folder (such as /wordpress).
Separate Website via App Installer
The installer always creates folders in www/domains.
Before installing, make sure that the given folder does not already exist on FTP. If it does, delete it. The installer will create a new one with the correct permissions.
Perform the installation itself according to the instructions in the article Webhosting – App Installer. In the first step of installing the selected app, select the alias for which you want to create the new website from the domain menu.
Separate Website via Migration Tool
To migrate multiple individual sites to one Webhosting using automatic migration, first enter the expert mode interface by following these steps:
- Log into the customer administration panel.
- In the navigation bar, select Web & Email Hosting Webhosting.
- Choose the webhosting you want to migrate to.
- In the left menu, select Data Migration Tool.
- At the top of the form, switch to Expert Mode.
Set these options in this interface:
- In Migration Type select Migrate into domains folder.
- In Target Domain Folder choose the alias domain to migrate to.
Enter all other data according to the Webhosting – Expert Data Migration Tool instructions.
Common Issues
Common problems with running separate websites through aliases include:
Cannot Edit FTP
Issue: I cannot edit or delete the folder in www/domains.
Solution: Repair Webhosting file permissions. If the problem persists, set up temporary support FTP access using this guide and contact us via the form. Include the Webhosting and FTP account name, and a list of the files you are trying to edit or delete.
App Installer Errors
Issue: The application installer returns an error.
Solution: Follow the guide Webhosting – App Installer.
Migration Tool Errors
Issue: Web hosting migration tool returns an error.
Solution: Follow the guide Webhosting – Expert Data Migration Tool.
HTTPS Error
Issue: Alias sites do not use HTTPS.
Solution: Add alias domains to the certificate according to the instructions Webhosting – Quick HTTPS Setup.
Domain Folder in URL
Issue: The website URL is domain.tld/domains/domain.tld instead of domain.tld.
Solution: If the site is running on both the main domain and this one, add the following code to your .htaccess file to redirect addresses containing domains
to the main page:
RewriteCond %{ENV:REDIRECT_STATUS} ^$ RewriteCond %{REQUEST_URI} ^\/domains RewriteRule (.*) https://%{SERVER_NAME}/ [R=301,L]
FAQ
Question: How many different websites can I run on one Webhosting?
Answer: The main limitation is performance. If you only run simple static websites (HTML, CSS, JavaScript), you can run up to 4 by default on one NoLimit Webhosting, and even hundreds through the Unlimited aliases add-on service. For websites using PHP, optimization and traffic matter. A clear indicator that performance is no longer sufficient is the occurrence of Error 503.