Do you have the option to do this in IIS instead? IIS6/7 both have a simple mechnism to do the redirect and preserve the path/parameters. Do a quick search if this is an option, we use for the typical www redirections.
Subject: Silverlight Deep linking and redirections Date: Thu, 28 Oct 2010 11:02:40 +1000 From: [email protected] To: [email protected] 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 to http://www.abc.com. Attempting to navigate to http://www.abc.com.au/#screen is redirecting to the default page of 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
_______________________________________________ ozsilverlight mailing list [email protected] http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
