The RESnWEB online booking system and its modules can also be configured to be available in browsers under the name of the accommodation’s own subdomain (e.g. booking.hoteldomainname.hu).
All we need to do is point the subdomain chosen by the accommodation, which is SSL-certified, to a unique subdomain created for each accommodation in RESnWEB, e.g. hotelbasedir.nethotelbooking.net
The following description is a guide to a possible way to use a unique domain name in RESnWEB. Of course, if the accommodation's IT system and the system operator would like to use a different approach, there are possibilities, e.g. reverse proxy. To implement this, please ask your system administrator.
As an alternative to the above, you can use Amazon Web Services' Cloudfront CDN to issue an SSL certificate, which you can add to your unique subdomain name.
IMPORTANT! This can only be done for servers that support SNI (Server Name Indication). You can read more about this on the AWS Cloudfront page.
Make settings
We need to configure a few things, as shown below (sometimes the AWS Cloudfront interface changes, but the settings are similar):
1. Login to the AWS interface (if you don't have an account, create one): https://console.aws.amazon.com/, then set the region to US East (N. Virginia):
2. Navigate to the AWS Certificate Manager interface and click on the "Request" button
3. For Certificate type, select "public certificate" and click on the “Next" button
4. In the "Fully qualified domain name" field, enter the domain name for which you want to issue SSL. (The subdomain name you choose will also be needed for the RESnWEB backend system settings.) This will be the subdomain on which your RESnWEB interface will work after the settings.
Example: booking.hotelsopron.hu
5. In the "Validation method" section, select "DNS validation" and click on “Request" button.
6. A blue bar will appear at the top, click on the "View certificate" button on the right side of the bar and in the "Domains" section you will see the SSL certificate and DNS settings we just requested.
7. Now a CNAME record should be recorded on the DNS server of the domain name of the accommodation, based on the information provided by AWS. You can use the Export to CSV button to export the settings and possibly send them to the appropriate person who will make the settings.
8. Once you have set up the record for DNS validation and AWS has validated the SSL (the time it takes depends on the TTL of the record), the status will change from "Pending validation" to a verified, "Issued" status.
9. Then, in your AWS account, navigate to your CloudFront settings and click on "Create a CloudFront distribution".
10. In the "Origin" section, in the "Origin Domain" field, enter the domain name basedir.nethotelbooking.net, where basedir is read from the URL nethotelbooking.net/hotels/basedir. E.g. if you currently see nethotelbooking.net/hotels/hotelsopron in the external URL, then the Origin Domain Name is hotelsopron.nethotelbooking.net. The Origin "Protocol" should be HTTPS Only.
The name of the subdirectory of the accommodation - basedir - can be obtained from the Hotel information / For web developers menu in the admin interface, in addition to the URL mentioned above
11. In the Viewer section, turn on "Redirect HTTP to HTTPS".
12. The "Cache policy" should be "CachingDisabled". The "Origin request policy" should be "AllViewerExceptHostHeader".
13. In the "Settings" section, in the "Alternate domain name (CNAME)" field, enter the subdomain name for which you have requested SSL. At "Custom SSL Certificate", select the field to select the SSL certificate you created earlier and click on "Create distribution" at the bottom of the page. The distribution may take up to 10-15 minutes to complete, while it is doing so, the status "Deploying" will be displayed.
14. On the screen, you will see that AWS has issued a cloudfront.net subdomain, which you can find in the "Distribution domain name" section.
15. Now, again on your own DNS server, create a CNAME record where the subdomain you have chosen (booking.hotelsopron.hu) points to the cloudfront.net subdomain created by AWS.
In total, we created two records on the DNS server of our accommodation domain name: one to validate the SSL and the other to redirect the subdomain to AWS.
The AWS system provides the subdomain with SSL and then redirects it to RESnWEB. From then on, the RESnWEB interfaces run under our own ssl-enabled subdomain name.
The last step is to enter the unique domain name in the Subdomain field in the Hotel information / For web developers menu, in the following format: e.g. https://booking.myhotel.com
IMPORTANT! Please check the settings in the instructions below before you add your subdomain to the admin interface. If you are not experiencing the below screens, do not yet fix the URL as this will result in the booking option not being available on the property's website at all.
Check your settings
The settings are correct if you open the link https://foglalas.domain.hu or https://booking.domain.hu and see a white background with a blue "Page not found" error message and the RESnWEB logo.
Also, click on the link https://booking.domain.com/hotels/basedir to see the booking calendar with the hotel logo in the top left corner.
Example:
If you want to integrate the online booking system and its modules into your accommodation website, you can do so using iFrame. The next option is to insert/change the embed code in the booking page created on the website. If the URL of the website created by the accommodation is hotelsopron.hu/reservation, then paste the integration code into the source code of this page.
The integration code can be generated in the RESnWEB admin interface under Hotel information / For web developers menu.
The accommodation has access to this menu item, but with the accommodation’s approval, web developers can also be granted access.
For information on how to retrieve the embed code, please see our articles below.
IMPORTANT! In case the source code of the website still contains the previous embed code, it is necessary to replace it with the new version.
Previous embed code format:
<script>
var hotel = 'DEMO';
var iframe_key = 111;
var lang = 'hu';
var currency = 'HUF';
var sticky_header = '';
window.oniframeinitialize = function(){
// Az iframe betöltése után fut le
}
</script>
<script src="https://nethotelbooking.net/embed.js"></script>
New embed code format:
<script src="https://nethotelbooking.net/embed.RESnWEB.js?id=MINTA"></script>
If you have any questions about the settings, please contact us.