?
Solved

DNS ( Subdomain Problem) in ASP.NET

Posted on 2008-11-08
1
Medium Priority
?
367 Views
Last Modified: 2012-05-05
For the subdomain i have used re-write rules

I have redirect [*].xyz.com to xyz.com/birthday.aspx?id=[*]

For eg.
Consider user name is john
I have redirect "http://john.xyz.com" to "http://xyz.com/birthday.aspx?id=john"

It is redirecting properly and displays the page content,but due to redirection images and css is not working properly.
Copy and paste the following two urls on browser you will see the difference

1. Subdomin : http://john.xyz.com

2. Actual      : http://xyz.com/birthday.aspx?id=john
0
Comment
Question by:Desire2change
1 Comment
 
LVL 7

Accepted Solution

by:
moseack earned 1500 total points
ID: 22911590
You need to figure our how your going to serve linked resources (images, css, js files, and other pages). Then you'll need to make sure the links in the rendered ASPX point to the right destination. For this purpose using '~/zyx.css" will not be good.

You should know that from the browser's perspective the following two URL are totally different, and for security concerns are even considered to be on different (untrusted) sites.
  1. http://xyz.com/1.css
  2. http://john.xyz.com/1.css
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

840 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