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.

The solution is to modify the hosts file of your PC, f
ind 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

Hosting with Rocket-Nginx : WProcket plugin and Nginx

Source : https://github.com/maximejobin/rocket-nginx  NB : you...

Backup and restore database in SSH

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

OpenOffice - LibreOffice

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

Use of Node.Js

To activate and use Node Js : from your cPanel, click on icon 'Setup Nodejs App' After, click...