My contemplations and diurnal novelties are publicized here


You might require several subdomain for a specific domain, so you can add them virtually using following technique.

You need to add an A record in your dns setting using your hosting control panel, pointing to the IP of your domain

e.g

subdomain.hellowahab.com

76.74.254.120

Now this will always redirect subdomain.hellowahab.com to you root page i.e

Hellowahab.com

Now you can add following lines to your code (Code is C# specific you can change as per your language requirement)

switch (Request.Url.ToString())

{

case “subdomain.hellowahab.com”:

case “http://subdomain.hellowahab.com/index.aspx”:

    case “http:// subdomain.hellowahab.com/”:

Response.Redirect(“http://www.anyurlofchoice.com”);

break;

}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: