문제

I want to redirect url to my site. I mean I have this domain.

  www.samplesite.com

and I have this site : www.samplesite.com/test/index.aspx but I want to enter www.samplesite.com and goes to my site. How can I do that?

I use dot net ,4.5 framework.

도움이 되었습니까?

해결책

When using asp.net web forms you can create a Default.aspx page, in the Page_Load method in the Default.aspx.cs file call this:

private void Page_Load(object sender, EventArgs e)
{
    Response.Redirect("~/test/index.html");
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top