[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Using clientname.companyname.com in place of www.companyname.com/app/index.asp?clientid=1234

Posted on 2007-10-09
6
Medium Priority
?
643 Views
Last Modified: 2011-09-20
I have a client with a web site that he needs to allow his clients a more "customized" look and feel.  For example, his clients can log in to his site and access their data at www.myclientssite.com/app/index.aspx?clientid=1234

BUT, he wants to give them a more personalized look (in part because these clients will be offering access to their portion of the web site to their clients.  So what he wants is some AUTOMATED way to myclientsclientname.myclientssite.com to respond synonymously with www.myclientssite.com/app/index.aspx?clientid=1234

Now my understanding of the technology (using ASP.NET and IIS 6) is that the only way to do this would be to give each client a DNS record and then check the header to see which client's data should be accessed.  But is there any other way?  Or any way to script the creation of the DNS record?  (They don't currently manage their own DNS on their server, but they could).

(I'm asking this on several sites as I need to ensure the broadest possible range of answers - but any answer I get that's not from here I'll post back for your information).
0
Comment
Question by:Lee W, MVP
  • 2
  • 2
4 Comments
 
LVL 25

Expert Comment

by:nauman_ahmed
ID: 20041622
First you will have to add * pointer in your DNS for your domain so that *.yourwebsite.com redirect to the main page of your web site. I recommend creating a domain such as *.profile.yourwebsite.com. So lets say you have configured your domain and when user type myclientsclientname.profile.myclientssite.com it will go to your default.aspx page. In default.aspx page you can parse the URL, retrieve the user information and then either redirect the user to www.myclientssite.com/app/index.aspx?clientid=1234 or perform some other operation.

HTH, Nauman.
0
 
LVL 97

Author Comment

by:Lee W, MVP
ID: 20041666
That just may help... can you link to any examples documenting this?  Specifically, adding the * record and what type of record it is?
0
 
LVL 25

Accepted Solution

by:
nauman_ahmed earned 2000 total points
ID: 20041943
If your domain DNS is being managed by some registrar such as godaddy.com, you can use their dmain mnagement tool and add the domain in the form of *.profile.yoursite.com and specify the IP address where it should point to. If you have a DNS administrator, you will have to contact him to make this change.

--Nauman.
0
 
LVL 97

Author Comment

by:Lee W, MVP
ID: 20155985
We have access to edit our own DNS and at worst, we should be able to contact that DNS host on how exactly to set this up.  But assume for the moment we are running MS DNS - how would this be setup?
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Thoughout my experience working on eCommerce web applications I have seen applications succumbing to increased user demand and throughput. With increased loads the response times started to spike, which leads to user frustration and lost sales. I ha…
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.
Suggested Courses
Course of the Month9 days, 13 hours left to enroll

591 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question