Hi all,

 

Currently trying to setup some redirections on a Silverlight site that
uses deep linking.  I'm attempting to do this via a 301 redirect in the
via the Global.asax.

 

The issue is that the deep linking (anchors) gets lost with the
redirection.

 

Eg.  Say we are attempting to redirect http://www.abc.com.au
<http://www.abc.com.au/>  to http://www.abc.com <http://www.abc.com/> .
Attempting to navigate to http://www.abc.com.au/#screen
<http://www.abc.com.au/#Page>  is redirecting to the default page of
http://www.abc.com <http://www.abc.com/>  rather than
http://www.abc.com/#screen . 

 

I can't see that the deep link (anchor) part is available from
Global.asax, meaning I can't use it in the redirect.  My redirection
code in global.asax looks like this:-

 

protected void Application_BeginRequest(object sender, EventArgs e)

{

    if
(HttpContext.Current.Request.Url.ToString().ToLower().Contains("www.abc.
com.au"))

    {

        HttpContext.Current.Response.Status =

            "301 Moved Permanently";

        HttpContext.Current.Response.AddHeader("Location",

            Request.Url.ToString().ToLower().Replace(

                "www.abc.com.au",

                "www.abc.com"));

    }

}

 

Has anyone had experience with this or can point me in the right
direction?

 

Cheers

Simon Hammer.

_______________________________________________
ozsilverlight mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight

Reply via email to