Domain masking is a method of hiding the actual URL of a site. For example, if you have and, you can show visitors the content of but still shows as the address in their browser.

Please note, search engines will see this as duplicate content (same content on both and and this could affect search engine rankings for one or both of your sites. Using 301 redirects is the generally recommended for pointing one domain to another.

If is your main domain, you can create as a Parked domain. This will keep the URL of in the browser address bar, but serve the content of

If and are both Addon domains, when you create as an Addon, make sure you set the document root to be the same folder as

Friendly URLs in Content Management Systems

There may be some cases where you are simply trying to create "friendlier" URLs in your site. If you're using a Content Management System (CMS) such as WordPress, Joomla or Drupal, there are built-in methods in these systems for creating these types of URLs. These types of URLs are called different things depending on your CMS. For example:

Other Friendly URLs

You can also make edits to your .htaccess file which will "rewrite" your URLs. Here are two examples:

  1. If you wanted to show the content of:

    But you wanted the URL to look like:

    You could put this code in your .htaccess file:

    RewriteEngine On
    RewriteRule ^subdirectory1\/?$ \/subdirectory1\/subdirectory2\/

  2. If you want to hide file extensions in your URLs. For instance:

    Show content from:

    But you want the URL to look like:

    Put this in your .htaccess file:

    Options +MultiViews

  3. There are several options for URL masking, you may want to expermient with the different options to see which works best for your site.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Did you find this article helpful?

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.