How to preview a website before migration ?

1

This very advantageous technique makes it possible to see one's website on another IP than that given by current DNS or IP pointing, and to check/test the proper functioning of a website. Also, to immediately fix any cache problem during DNS changes.

Solution 1. With online https://skipdns.link/, input well IP address of your account that you can find on top right of your cPanel 

OR Solution 2 :

Modify the hosts file of your PC, find your host file according to your operating system's computer :
For Windows, with your file explorer, find and open the file with a text editor like notepad+ (administrator mode), located in c:\windows\system32\drivers\etc\hosts


For Mac, see tutorial :
https://www.howtogeek.com/howto/27350/beginner-geek-how-to-edit-your-hosts-file
 

Find your IP in "Zone Editor" of your cPanel, entry A, ex: 151.80.3.113

Entrée A cPanel

Add this in the hosts file by replacing by correct IP and domain (remove any # in front) :

151.80.3.113 123hosting.fr www.123hosting.fr

To know for sure if you load from our servers (after cleaning your browser cache, and DNS from your PC), create a file test by ftp in the root folder of your web hosting at home : public_html folder in general
Clean your browser cache, cookies, and sessions by settings / options of your browser (CTRL + F5 is not enough)
Try to to access this last page, ex: yourdomain.com/test, if you see a blank page, and not a 404, it means that you load from our servers...

NB :
- make sure your htaccess file is not redirecting to real site, remove htacess as a first step or temporarily
- https preview mode is not possible without validating the warning as it require domain validation by proper pointing to get a signed SSL... or import a SSL certificate in your cPanel
- this hosts file solution works at 95% and is enough to appreciate things, some problems in temporary can disappear during the change of IP of the real site

Also Read

Recommended configuration with HA offers

Prestashop 1. Perf setting :MySQL Caching type : put File System 2. Modules to deactivate for...

Backup and restore database in SSH

It is a fact, restore/import dense or important databases by phpmyadmin is not working or bad, it...

Resource management reseller under Cloudlinux

At the level of your reseller account, you can and must visualize the resources in real time of...

OpenOffice - LibreOffice

With SSH you can test, it works and is the best solution to implement this command in your php...