Last Updated 24 days ago

How to add a new domain?

Adding a new domain

  1. Add a new domain on prestashow, next to the domain for which the module was purchased.
    image
  2. Edit the DNS zone records of your domain
    1. 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/
  3. Add the new domain to your hosting panel
    1. It must point to the same directory on the server as the main domain of the store
    2. It must have the same PHP configuration as the main domain of the store
    3. It must have the same web server configuration (apache/nginx/other) as the main domain of the store
    4. If you are using https, generate or add an SSL certificate to the domain
  4. Add the new domain in the pshowdomaincontrol module
  5. 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:
If each of these addresses displays the same response, the domains are most likely set up correctly. (This test does not check the configuration of the pshowdomaincontrol module, for example)

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!

Please Wait!

Please wait... it will take a second!

Kliknij by skopiować