Restaurant subdomain
Last updated
Last updated
One of the most commonly used shared hosting framework is cPanel. So we will write our guide for it. But things should be similar in Plesk or any other solution.
After you have your main domain or subdomain active, and your site is up and running, you can make each restaurant to have its own domain. Like in our demo.
The main site is https://zebra-qr.com/ and there you can find all restaurants as they are in subfolder ex ( https://zebra-qr.com/restaurant/leukapizza ). But each restaurant can be also directly open for example: https://leukapizza.zebra-qr.com/ This feature is directly enabled in your QR Menu Maker site. But you will need to create a wildcard subdomain that uses the same folder as your main site.
Log into your cPanel.
Navigate to Domains section > Subdomains menu:
Create a subdomain *
Enter * for Subdomain
Select your domain
Select ( enter ) the same document root - in this case /public_html
Go to the Zone Editor menu:
Make sure that there is an A record for *.yourdomain.com created and pointed to the server IP address (it could coincide with the IP address of your main domain or ftp.yourdomain.com is pointed to):
Now, you will need to wait until the propagation is over (it should take N seconds, where N – is TTL for this A record; you can edit it manually and reduce the number to speed up the process), and then the wildcard subdomain will work correctly.
Each restaurant has automatically their own subdomain now. Open some restaurants on your site. Example:
https://zebra-qr.com/restaurant/malibudiner --> https://malibudiner.zebra-qr.com/
In this case, the subdomain is malibudiner
Login as admin in your project and decare in Settings / Setup and select WILDCARD_DOMAIN_READY
Article Instructions copied from
By default the wildcard subdomains are not SSL protected. To do that you can buy or issue wildcard SSL certificate - sometimes they are a bit expensive. You can also use https://letsencrypt.org/ to create your own free wildcard SSL. Plesk by default can enable SSL on wildcard subdomain. You can also use this guide. Our demo site works on Laravel Forge. They also have the options to automatically create wildcard SSL via Digital Ocean NS.