How To Mask Domain On Your Own Servers And Distribute Them? [301 Redirection]

301 redirects

Well, I guess one day or another you will need to refer your users about your Google+, Facebook, etc. profiles. You may have also seen some big sites like SML using similar method. If you want someone to use your coupon code without revealing it, then this is the best trick you can use. There are thousands of online domains which even ‘pay’ you when you mask your URL’s, but what about masking on your own domain? It can be really fun! Let’s read this post and I will show you how to do this task and why should you do this!

Must Read: How To Speed Up Your WordPress Blog With W3 Total Cache (W3TC)

What Is Domain Masking?

Domain masking is the process of hiding a domain inside another domain to give out either professional look, or fool people (sometimes done by hackers) Domain masking sets either 301 Permanent Redirection to domain or 302 Temporary redirection to domain.

What Is 301 Permanent Redirection And 302 Temporary Redirection?

301 Permanent Redirection means permanently redirecting to a domain without leaving out anything whereas 302 Temporary Redirection leaves down some things for crawlers and search engines to tell them whether it’s a 301 redirection or 302. Let’s take a simple example. You have bookmarked a domain, now the admin changed the domain and set permanent redirection (301) to his domain. Now, the favicon set for will be changed to the favicon set for If the author had set 302 redirection, then the favicon for existing users won’t have been changed.

Things Required Setting Up Custom Redirection (Masking):

  1. Domain
  2. cPanel
  3. Domain to be masked
  4. That’s it!

How To Mask Domain Using cPanel?

Must Read: How To Make Money Using Nothing More Than Your Email List

  • First of all, log into your cPanel which usually is on or
  • After login, you will see a bunch of screen with a lot of icons ready to be clicked.
  • Leave them all and navigate down to Domain Section.
  • Click on Redirects

301 and 302 redirect domain

  • Now, you will get a single big Redirects screen.

domain redirect

1. Type: This will set up type of redirection. 301 is Recommended.
2. Domain: Select your domain on which redirection is to be set. You can create your sub domains also like
3. Path: These are the words on which visitor visits gets redirected. Like: recommend/googleplus
4. Redirects to: This field has to be filled with the domain on which the above domain must be redirected. Like domain as onenaijablog in 2nd field and google in 3rd field and in third field.
5. Redirection: Simply keep it as default. No need to mess with it.
6. Button: This will create your redirection.

From Editor’s Desk:

Well, you can create as many redirects as you want. This would help you to give your domain a more professional look. Rather than using cheap link shortner you can use this one too which will be secure and 100% trust able as it is hosted on your own custom domain. You can create sub domains to make a redirection domain too.

Must Read: 2013 Affiliate Marketing Strategies

We have talked so much about so much now let’s move the whole story and discussions to you guys. Are you confused with the whole illustrations and would love to ask questions? then please do by using the comment box below and we will surely get back to you.

Would you like to leave a comment, thoughts or even opinion? Feel free to express your thoughts by using the comment box below. Remember that your comments and thoughts are highly welcomed and appreciated.

Please do not forget to subscribe to our feed for your latest updates on the go.

46 thoughts on “How To Mask Domain On Your Own Servers And Distribute Them? [301 Redirection]”

  1. Hey Mehul,
    Good share!
    I have been working in cPanel since 2005 and this is one of the things I use often.
    I’m sure this tut will really help many starters 😉

    Thanks for sharing bro

  2. Hello Mehul, good to have you here on Babanature’s blog…
    This post is really technical and might give a non-tech person the chill 😀 Now i just have one question; Can i use this method for URL shortner? and will it make any effect at the long run? I’d like to know all this because i am never a tech guy 😉

    • Hi Bello! The post is made as simple as it can be! 😉 So, the answer is YES. You can use this service as a link shortner also. It won’t affect your site in any way because it is completely hosted on your servers with Permanent 301 Redirection. Hope that helps. 🙂

  3. That’s a nice trick, Mehul. So, you mean we can use this to cloak our affiliate links instead of the plugins we use. Are there any disadvantages of not using the plugin? The advantage I understand is to have total control over the link and not to depend on any external source. Thanks Babanature for this post. 🙂

    • Harleen, you can use that way but the drawback is you won’t have those important stats to analyze and make further strategies. That’s why we are bound to get some nice plugin such as ‘PrettyLink’ to mask affiliate links.

    • Hey Harleena! Plugins, one way or another, affect your site in some way. So, it is better to use cleaner ways instead of plugins. It will also work even if you are not on wordpress.

    • Just the same question came up to me like it did to Harleena ma’m. I thought may be some backfiring. Great tricks anyways Mehul and Thanks Mehul for those plugins mentioned

  4. HI Mehul,

    This is the best description of 301 and 302 redirect and many of people I know haven’t been able to understand the usage of this one but this is very much important when you’ve multiple domains pointing towards single hosting or moved the stuff from one domain to another.

    Thanks for this great share.


  5. This is useful tutorial. Still, newbies are scared to change settings from cPanel. However, your illustrations should make them able to create redirected domain names.

    If you are interested to mask your affiliate links and tracking, I recommend using plugins like PrettyLink. You can create short and meaningful URLs to redirect them to affiliate links. The better purpose of this plugin is to get tracking report, the analytics to find which links are performing better.

  6. Wow Mehul, learning more and more these days about the tech side of things. I fumbled through masking 4 years ago when I began blogging lol 😉

    Thanks for sharing your insight with us.


  7. Never ever thought that it is actually possible. Thanks for letting me know about this issue! I learn something more challenging on completely different
    blogs everyday.

  8. Hi Mehul,

    What an interesting post you’ve shared with us. Now I’m going to admit right now that this is over my head. I know how to mask my domain in my domain account and I know how to redirect my affiliate links. I’ve always heard about 301 redirects but I never understood why there were necessary. I get what you’re saying about a coupon code so I guess is you don’t want people to see the actual link then this is why you would do this? Is that right?

    I’m not very technical but I have learned a lot. Mostly stuff that I need to know and this is not one of them. Okay, not yet.

    Thanks for this tutorial though so at least I know how to do this if I want. I’m sure Babanature appreciated this share today.

    You guys have a great week.


    • I’m with you Adrienne.

      This is quite above my head too, but reading it through, especially the comment section, I do have a better understanding of it now.

      Interesting and a to-do later on down the road.

      Many thanks Mehul.


    • Hello Adrienne,
      sure i really do love the post. If i must confess, i don’t really know about domain masking till i come across this post 😀 . But i know now that i have some idea about it now. Thanks for the comment and do have a great week ahead.

  9. Nice tips for all newbie as i preferred plugin only for my blogs not yet tried manual one would like to change them as plugin can cause any issues at anytime

  10. Hi Mehul,

    I have no idea about “redirects” or “301” nor “masking.” And I have W3 Total Cache and still it confuses the heck out of me. I also used WP Super Cache besides the W3 TC. Just because WP Super Cache is EASIER to use. Whenever I update my blog or post, all I do is delete the cache on WP Super Cache but I cannot do that on W3 TC.

    Besides the masking technical stuff…I’m afraid this is my weakness. The part that I hate about graphic design and/or coding is the technical issue. After all I’m an Artist and not a programmer. Anyway, so far so good.


    • Okay. For that you will need access to your HTML code at least. If you HAVE access to HTML code, then you can set META refresh to redirect domain. If NO, then you can paste a javascript anywhere in your site’s section and it will work. Contact me on email on Google it for more info. 🙂

  11. Hi Mehul ,

    Great Tutorial . You are everywhere man . Wherever I go , I find you . There is a Mehul Mohan guest post each and every where . Keep up the good work mate .


  12. Hi Mehul

    Great tips on masking a domain and about the 301 and 302 redirects.

    I learned something new today as I am new to all these technical stuff and I am not techy myself.

    Maybe I will try it in the future, but it is not in my agenda for now.

    Many thanks Mehul for sharing your technical experience. Also thanks Babanature for this great share in your blog.

    Be Blessed,


  13. Hey Mehul,

    I like your website so I subscribed for news. I also liked your facebook fan page.

    Best regards from I. C. Daniel – Romania

  14. What’s the SEO effect of doing these types of redirections ? Because by using some plugins we also can do the same thing. But how do we control the SEO performance of site making redirections using this method ? Yes, it doesn’t need to worry for internal pages, but if we want to links to an affiliate page, we must add rel=’nofollow’ tag. Is there a way to do it ?

  15. Hello,

    Well I’m also using cpanel since a long time but didn’t tried domain masking yet. I think its very beneficial for numerous thing which is already mentioned in the post.


  16. Woow Awesome post. This is really helpfull for me. You made my day. I just loved this article. You helped me alot so I just wanna say thanks to you…..that’s all !!
    Thank you.


Leave a Comment