0

次のリンクのバニティ URL を作成する必要があります: http://www.cvent.com/d/2cq542

次のようなものにする必要があります: http://www.opportunityfinance.com/SmallandEmerging/

私が見る最大の問題は、Apache のサポートがないことです。私がまだ理解しようとしている ASP.net だけです。

誰かが私を正しい方向に向けたり、何かを始めるのを手伝ってくれたりできますか? .aspxorファイルを作成してor 何か.aspを呼び出す必要があると考えています。Request.ServerVariables

みんなありがとう!

4

1 に答える 1

0

リダイレクトを探す場合、2 つの方法があります。

各ページを単独で作成し、単純にリダイレクトを作成するか、global.asax で現在の場所と行きたい場所を確認してプログラムで行います。例:

protected void Application_BeginRequest(Object sender, EventArgs e) 
{       
    // get here the map from /d/2cq542 to /SmallandEmerging/
    // return null for no map
    string cWhereToGo = GetTheRedirectMap(HttpContext.Current.Request.Path);

    if(cWhereToGo != null)
    {
        // you can also add different domain on the start.
        HttpContext.Current.Response.Redirect(cWhereToGo, true);
        HttpContext.Current.Response.End();
    }
}
于 2013-04-04T16:30:52.613 に答える