Last Updated 7 months ago
How to add a new domain?
Adding a new domain
- Add a new domain on prestashow, next to the domain for which the module was purchased.
- Edit the DNS zone records of your domain
- An A record pointing to the IP address of your server must be added - propagation may take from a few minutes up to 48 hours, you can check it here, for example: https://dnschecker.org/
- Add the new domain to your hosting panel
- It must point to the same directory on the server as the main domain of the store
- It must have the same PHP configuration as the main domain of the store
- It must have the same web server configuration (apache/nginx/other) as the main domain of the store
- If you are using
https
, generate or add an SSL certificate to the domain
- Add the new domain in the pshowdomaincontrol module
- Configure restrictions for the domains - language, currency, etc.
Testing
The simplest way to check if the domains point to the same directory and have the same PHP configuration is to create a testdomain.php file in the main directory of your store with the content:phpinfo();
Then, open this file in a browser using each of the domains, for example:
- https://myshopdomain.com/testdomain.php
- https://myshopdomain.pl/testdomain.php
- https://myshopdomain.de/testdomain.php
Receiving a 404 error means that the domain points to a different directory on the server. Displaying a different version/configuration of PHP means that the hosting configuration needs to be corrected.
Remember to delete the testdomain.php file after testing is complete!