Simple domain name masking
Domain name masking allows you to show one URL in the browser’s address bar, while another website’s content is loaded. For example, when somebody opens your website, you can have yourdomain.com shown in the browser’s address bar while the actual site loaded will be yourOTHERdomain.com.
To achieve the above, an index.html file with the following code should be placed in the main folder for yourdomain.com:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Page Title</title>
<meta name="description" content="Description">
<meta name="keywords" content="Keyword1, Keyword2">
<style>
body, html {
margin: 0;
padding: 0;
height: 100%;
}
iframe {
width: 100%;
height: 100vh; /* Full viewport height */
border: none; /* Remove border from iframe */
}
</style>
</head>
<body>
<iframe src="http://yourotherdomain.com"></iframe>
</body>
</html>
The only thing you should change in the code above for the index.html file which you will create is “yourotherdomain.com” with your real domain name.