How can I mask my domain?

Linode Staff

I want to mask my domain name using another name. What are my options?

1 Reply

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.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct