Domain Masking

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
alex2008
Forum Newbie
Posts: 1
Joined: Mon Jul 28, 2008 4:27 am

Domain Masking

Post by alex2008 »

Hi all,

I need to know how to mask a domain either through htaccess or through code.

Say suppose I am having a blog like this http://test.domain.com/ which is working fine. Now I had purchased a domain name alex2008 and I want to mask my blog url through code. like http://alex2008.com which is actually from http://test.domain.com. Any one trying test.domain.com will get the url as http://alex2008.com

Thanks in advance

Regards
Alex
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Domain Masking

Post by jaoudestudios »

You can do it through htaccess - I am writing a tutorial, so will hopefully be ready by tomorrow. Or your domain provider should have a built in facility as you only want to mask the domain and nothing fancy.
Post Reply