In the article, I will guide you to add media servers in Prestashop 1.6 and Prestashop 1.7. A media server is another domain of your store, which is used to load cookieless static content. What's the advantage of adding media servers, adding at least one media server to your site would speed up your site. Please take the following steps to add a media server to your Prestashop 1.6 and Prestashop 1.7.
1. Register/buy a new domain for your store.
Register another domain domain, generally at the same place where you registered your main domain. Point the new domain also to your hosting's DNS servers, that will take 2 - 24 hours to take effect. If you don't know how to do, please contact your hosting provider to get help.
2. Adding a domain alias to you store.
Log in your cPanle, and locate to the "Domains" section, click the "Alias" button:
Then type the new domain here, and then click the "Add domain" button:
Now the domain alias is added to your store, you can access to your store via the new domain after few hours, as it will take some hours to take effect.
3. Adding a media server to Prestashop
When the new domain is available, log in to the back office of your store, locate to Config > Advanced parameters > Performance > MEDIA SERVERS (USE ONLY WITH CCC), add the new domain to the "Media server #1". if you have the other domains, you can add them to the "Media server #2" and the "Media server #3", but which aren't necessary usually, one media server is enough.
4. Regenerating .htaccess file
You would find the new domain still can't work fine, as it will be redirected to the main domain by the .htaccess, so you need to regenerate the .htaccess file. Go to BO > Config > Shop parameters > Traffic & SEO in Prestashop 1.7 (The path is BO > Preferences > URLs & SEO in Prestashop 1.6), just deactivate the "Friendly URL" option and save it, then activate the "friendly URL" option and save it again. Now the media server can work fine. Don't forget to clear the Smarty cache.
5. Is the media server working now?
You can use the developer tools of chrome or firefox to inspect it. Let's use chrome browser as an example, press F12 to enable the developer tools, and click the "network" tab and "Img" tab, press F5 to reload the page, then you will see a lot of requests on the console, just move the mouse to a request, you will see the media server is applied on it: