DNS ( Subdomain Problem) in ASP.NET

Posted on 2008-11-08
Last Modified: 2012-05-05
For the subdomain i have used re-write rules

I have redirect [*] to[*]

For eg.
Consider user name is john
I have redirect "" to ""

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 :

2. Actual      :
Question by:Desire2change
    1 Comment
    LVL 7

    Accepted Solution

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on could not pull conte…
    In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    This video discusses moving either the default database or any database to a new volume.

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now