XML wildcard for redirects?
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!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks