| 10:49 pm on Jul 24, 2012 (gmt 0)|
What do you mean by "goes to"?
It's one of the most abused phrases quoted in questions here with (at least) three different meanings depending on what you actually want to do.
| 12:53 am on Jul 25, 2012 (gmt 0)|
By 'goes to' I mean that any request for the sub.example.com is directed to the subdomain website files that are located in a separate directory from the main site.
A request for a subdomain shows the subdomain website.
[edited by: Ocean10000 at 3:50 pm (utc) on Jul 25, 2012]
[edit reason] examplefied [/edit]
| 1:01 am on Jul 25, 2012 (gmt 0)|
Open IIS Manager, create a new site correctly configured for the subdomain in question.
Then on the main site, click on the folder and configure the HTTP Redirect to the new subdomain.
You might want to use http://sub.example.com$S$Q in the "Redirect requests to this destination" so that ALL requests are passed including query strings.
[edited by: Ocean10000 at 3:49 pm (utc) on Jul 25, 2012]
[edit reason] broke hyperlink/examplefied [/edit]
| 9:33 am on Sep 19, 2012 (gmt 0)|
To implement a conditional 301 redirect in ASP, two elements must be present at the top of the default document an if statement testing the incoming HTTP header and the 301 redirect then a conditional redirect is useful when subdomains must redirect to the content of a subfolder other than the document root
Here is the example coding
private void Page_Load(object sender, System.EventArgs e)
If (Request.ServerVariables["SERVER_NAME"] == "sub.domain.com") then
Response.Status = "301 Moved Permanently";
| 7:40 pm on Sep 19, 2012 (gmt 0)|
You should have response.end before the end if, as the header will be added by the entire script will be processed before actually sending it to the browser.
| 7:38 am on Nov 8, 2012 (gmt 0)|
Thank you give me a information to 301 redirect sub domain.