How can I mask my domain?
Linode
Linode Staff
I want to mask my domain name using another name. What are my options?
1 Reply
jyoo
Linode Staff
A relatively simple way to perform domain masking is to add the following code block to your index.html
file for your site:
<html>
<head>
<title>Page Title</title>
<meta name=”description” content=”Description”>
<meta name=”keywords” content=”Keyword1, Keyword2″>
</head>
<frameset rows=”100%,0″ border=”0″>
<frame src=”http://alternatedomain.com” frameborder=”0″>
<frame frameborder=”0″>
</frameset>
</html>
This creates a frame embedded in your main site that points to your alternate site. You could instead use a feature like mod_rewrite on Apache. If you're using Apache, we have a great Linode Community post here that explains how to get started with mod_rewrite. Nginx has a similar guide available here. You also may be able to make use of CNAME records.