I don't know much about xml, but I will be moving some pages to new urls which are currently xml files. Is it possible to put a redirect in an .xml page, and if so, would anyone be able to post the code I need to do this?
Cheers.
choster
2:00 pm on May 5, 2005 (gmt 0)
Redirects are best handled at the web server level. There is no generic "redirect" function in XML (any more than you can insert a redirect into a JPG or Excel fil), but you could presumably define an element for a canonical uri in your schema and then process on it.
HelenDev
9:48 am on May 6, 2005 (gmt 0)
Cheers for the reply Choster.
I will try to get the redirects done on the server.
you could presumably define an element for a canonical uri in your schema and then process on it
LOL I think I would need to go read an xml book to do that!
macrost
12:17 am on Jun 9, 2005 (gmt 0)
How are your pages being displayed to the end user? Are you using xsl, or parsing with a server side language?
Debashis
9:07 am on Jun 9, 2005 (gmt 0)
Just write the .xml file in to the Response.Redirect("test.xml");
Its very easy isn't it?
Debashis
9:08 am on Jun 9, 2005 (gmt 0)
Just write the .xml file in to the Response.Redirect("test.xml"); :) Its very easy isn't it?
kevinjohn
10:34 am on Jun 9, 2005 (gmt 0)
Debashis, What u have said is correct. Response.Redirect("test.xml");
But like macrost has mentioned, u got to use xsl or server side scripting language to display the contents of the xml file in the web page.
hope this helps u in some concern. Cheers.
HelenDev
8:18 am on Jun 13, 2005 (gmt 0)
Just to let everyone know, I went with server redirects in the end, much easier :)