Hello,

I am looking to see if there is some sort of wildcard I can put into
place in my xml file for redirects.  I currently have a redirect.xml
file in the root of my site.  If an old url is entered into a browser
this redirect.xml file is searched first and then will redirect to
what we want it to.  What I'm looking for is a wildcard type way of
doing it.  For example, on our old site we have pages such as
www.mysite.com/newsroom/pressrelease1.aspx, 
www.mysite.com/newsroom/pressrelease2.aspx,
www.mysite.com/newsroom/pressrelease3.aspx, 
www.mysite.com/newsroom/pressrelease4.aspx,
etc...


I'm looking to implement a wildcard redirect, so that anything with
www.mysite.com/newsroom/* will redirect to one landing page such as
www.mynewsite.com/newsroom/home.aspx


We currently have a solution in place for redirects on a specific
page
basis, but are looking for a wildcard solution as well....here is
what
we currently have which works perfectly:


<?xml version="1.0" encoding="utf-8" ?>
<pages>
<page><oldurl>%2fpeopleandculture%2fcareers%2fopportunities.aspx</
oldurl><newurl>/peopleandculture/opportunities</newurl></page>
<page><oldurl>%2fpeopleandculture%2fcareers%2fbeforeapplying.aspx</
oldurl><newurl>/peopleandculture/opportunities/beforeapplying.aspx</
newurl></page>
<page><oldurl>%2fpeopleandculture%2fcareers%2frecruiting</
oldurl><newurl>/peopleandculture/recruiting</newurl></page>
<page><oldurl>%2fpeopleandculture%2fcareers%2frecruiting
%2fstudents.aspx</oldurl><newurl>/peopleandculture/recruiting/
students.aspx</newurl></page>
<page><oldurl>%2fpeopleandculture%2fcareers%2frecruiting
%2fmilitary.aspx</oldurl><newurl>/peopleandculture/recruiting/
military.aspx</newurl></page>
<page><oldurl>%2fpeopleandculture%2fcareers%2frecruiting
%2fdiversity.aspx</oldurl><newurl>/peopleandculture/recruiting/
diversity.aspx</newurl></page>
<page><oldurl>%2fpeopleandculture%2fcareers%2fwhyexelon</
oldurl><newurl>/peopleandculture/whyexelon</newurl></page>
<page><oldurl>%2fpeopleandculture%2fcareers%2fwhyexelon
%2fprofessionaldevelopment.aspx</oldurl><newurl>/peopleandculture/
whyexelon/professionaldevelopment.aspx</newurl></page>
<page><oldurl>%2fpeopleandculture%2fcareers%2fwhyexelon
%2fcompensation.aspx</oldurl><newurl>/peopleandculture/whyexelon/
compensation.aspx</newurl></page>
<page><oldurl>%2fpeopleandculture%2fcareers%2fwhyexelon
%2fbenefits.aspx</oldurl><newurl>peopleandculture/whyexelon/
compensation.aspx</newurl></page>
</pages>


Any help would be greatly appreciated!  Thanks in advance!



-- 
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net

Reply via email to