function ifURL($old, $new) { $URL = $_SERVER["REQUEST_URI"]; if(strstr($URL, $old)) { header("location: $new"); exit(); } } if($_isJkp) { $domain = 'http://www.jkp.com/'; ifURL('/catalogue/author.php', $domain.'author/authors/list/'); ifURL('/catalogue/author/', $domain.'author/authors/list/'); ifURL('/catalogue/book/Mind_Reading_sit', $domain.'/mindreading'); ifURL('/catalogue/catalogues.php', $domain.'catalogs'); ifURL('/catalogue/dvd.php', $domain.'products'); ifURL('/catalogue/ebooks.php', $domain.'ebooks'); ifURL('/catalogue/forthcoming.php', $domain.'comingsoon'); ifURL('/catalogue/institutionalorders.php', $domain.'purchase-orders'); ifURL('/catalogue/howtobuy.php', $domain.'delivery-times'); ifURL('/catalogue/inspection.php', $domain.'inspection-copies'); ifURL('/catalogue/new.php', $domain.'newtitles'); ifURL('/catalogue/outofprint.php', $domain.'outofprint'); ifURL('/jkp/contact.php', $domain.'contact'); ifURL('/jkp/cookies.php', $domain.'cookies'); ifURL('/jkp/distributors.php', $domain.'distributors'); ifURL('/jkp/forauthors.php', $domain.'write-for-us'); ifURL('/jkp/jobs.php', $domain.'jobs'); ifURL('/jkp/people.php', $domain.'people'); ifURL('/jkp/privacy.php', $domain.'privacy-policy-cookie-restriction-mode'); ifURL('/jkp/promo-images.php', $domain.'press'); ifURL('/jkp/socialnetworks.php', $domain.'socialmedia'); ifURL('/jkp/terms.php', $domain.'terms'); ifURL('/mindreading/index.php', $domain.'mindreading'); ifURL('/mindreading/buy/', $domain.'mindreading'); ifURL('/mindreading/buy/index.php', $domain.'mindreading'); ifURL('/mindreading/demo/', $domain.'mindreading/demo'); ifURL('/mindreading/demo/index.php', $domain.'mindreading/demo'); ifURL('/mindreading/faq.php', $domain.'mindreading/faq'); ifURL('/mindreading/index.php', $domain.'mindreading'); ifURL('/mindreading/mainfeatures.php', $domain.'mindreading/mainfeatures'); ifURL('/mindreading/press.php', $domain.'mindreading'); ifURL('/mindreading/sitemap.php', $domain.'mindreading'); ifURL('/mindreading/specialneeds/', $domain.'mindreading/specialneeds'); ifURL('/mindreading/specialneeds/index.php', $domain.'mindreading/specialneeds'); ifURL('/mindreading/specialneeds/other.php', $domain.'mindreading/specialneeds/other'); ifURL('/mindreading/support/', $domain.'mindreading/support'); ifURL('/mindreading/support/index.php', $domain.'mindreading/support'); ifURL('/mindreading/support/faq.php', $domain.'mindreading/support'); ifURL('/mindreading/support/registration.php', $domain.'mindreading/support/registration'); ifURL('/mindreading/support/getsupport.php', $domain.'mindreading/support/getsupport'); ifURL('/mindreading/support/downloadguides.php', $domain.'mindreading/support/userguides'); ifURL('/mindreading/systemrequirements.php', $domain.'mindreading/systemrequirements'); ifURL('/press/release/', $domain.'press'); ifURL('/press/release/2012/50', $domain.'press'); ifURL('/search/index.php', $domain.'catalogsearch/advanced'); ifURL('/catalogue/collection/amazing', $domain.'collections/featured-collections/amazing-ideas.html'); ifURL('/catalogue/collection/ASDmentalhealth', $domain.'collections/mental-health-and-sleeping-well.html'); ifURL('/catalogue/collection/asperteens', $domain.'collections/asperger-adolescents-survival-kit.html'); ifURL('/catalogue/collection/autismholiday', $domain.'collections/school-s-out-autism-summer-holiday-reads.html'); ifURL('/catalogue/collection/autismpro', $domain.'collections/autism-professional-essentials.html'); ifURL('/catalogue/collection/dementiasupportfam', $domain.'collections/dementia-support-for-family-and-friends.html'); ifURL('/catalogue/collection/destress', $domain.'collections/for-the-stressed-out-social-worker.html'); ifURL('/catalogue/collection/fun%20for%20children', $domain.'collections/bringing-fun-into-children-s-services.html'); ifURL('/catalogue/collection/gift', $domain.'collections/gift-books-to-support-your-adopted-child.html'); ifURL('/catalogue/collection/holiday', $domain.'collections/holiday-reads.html'); ifURL('/catalogue/collection/keepkidscalm', $domain.'collections/featured-collections/travelling-with-children.html'); ifURL('/catalogue/collection/ncb', $domain.'collections/national-children-s-bureau-bestsellers.html'); ifURL('/catalogue/collection/older%20people', $domain.'collections/working-with-older-people.html'); ifURL('/catalogue/collection/palliative%20care', $domain.'collections/supporting-people-in-palliative-care.html'); ifURL('/catalogue/collection/sleep', $domain.'collections/mental-health-and-sleeping-well.html'); ifURL('/catalogue/collection/', $domain.'collections.html'); ifURL('/catalogue/ser/10minuteprimers', $domain.'series/10-minute-primers.html'); ifURL('/catalogue/ser/adultsasperger', $domain.'series/adults-speak-out-about-asperger-syndrome.html'); ifURL('/catalogue/ser/aspergeradventures', $domain.'series/asperger-adventures.html'); ifURL('/catalogue/ser/bradford', $domain.'series/bradford-dementia-group.html'); ifURL('/catalogue/ser/canitellyouabout', $domain.'series/can-i-tell-you-about.html'); ifURL('/catalogue/ser/casestudies', $domain.'series/case-studies-for-practice.html'); ifURL('/catalogue/ser/childmenhealth', $domain.'series/child-and-adolescent-mental-health.html'); ifURL('/catalogue/ser/childrencharge', $domain.'series/children-in-charge.html'); ifURL('/catalogue/ser/childwelfareoutcomes', $domain.'series/child-welfare-outcomes.html'); ifURL('/catalogue/ser/chinesehealthqigong', $domain.'series/chinese-health-qigong.html'); ifURL('/catalogue/ser/daoyinyangshengong', $domain.'series/dao-yin-yang-shen-gong.html'); ifURL('/catalogue/ser/daxuan', $domain.'series/da-xuan.html'); ifURL('/catalogue/ser/deliveringrecovery', $domain.'series/delivering-recovery.html'); ifURL('/catalogue/ser/essentials', $domain.'series/jkp-essentials.html'); ifURL('/catalogue/ser/essentialskillscare', $domain.'series/essential-skills-for-social-work-managers.html'); ifURL('/catalogue/ser/fiveelementacupuncture',$domain.'author/authors/view/id/nora-franglen-6731'); ifURL('/catalogue/ser/forensic', $domain.'series/forensic-focus.html'); ifURL('/catalogue/ser/gpsocwk', $domain.'series/good-practice-in-health-social-care-and-criminal-justice.html'); ifURL('/catalogue/ser/group', $domain.'series/international-library-of-group-analysis.html'); ifURL('/catalogue/ser/hep', $domain.'series/higher-education-policy.html'); ifURL('/catalogue/ser/innovativelearning', $domain.'series/innovative-learning-for-all.html'); ifURL('/catalogue/ser/internationalacupuncture', $domain.'series/international-acupuncture-textbooks.html'); ifURL('/catalogue/ser/jkpshortintros', $domain.'series/jkp-short-introductions.html'); ifURL('/catalogue/ser/lifegames', $domain.'series/lifegames.html'); ifURL('/catalogue/ser/masteringsocialwork', $domain.'series/mastering-social-work-skills.html'); ifURL('/catalogue/ser/practicaltheology', $domain.'series/practical-theology.html'); ifURL('/catalogue/ser/principlesof', $domain.'series/discovering-holistic-health.html'); ifURL('/catalogue/ser/qualitymatters', $domain.'series/quality-matters-in-childrens-services.html'); ifURL('/catalogue/ser/reflectivepractice', $domain.'reflective-practice-in-mental-health.html'); ifURL('/catalogue/ser/reshigh', $domain.'series/research-highlights-in-social-work.html'); ifURL('/catalogue/ser/safeguardingchildren', $domain.'series/safeguarding-children-across-services.html'); ifURL('/catalogue/ser/serviceschildren', $domain.'products'); ifURL('/catalogue/ser/sochealthlawpractice', $domain.'quick-guide-to-community-care-practice-and-the-law.html'); ifURL('/catalogue/ser/socialcareworkers', $domain.'series/knowledge-and-skills-for-social-care-workers.html'); ifURL('/catalogue/ser/supportfriendsfamily', $domain.'products'); ifURL('/catalogue/ser/supportingparents', $domain.'series/supporting-parents.html'); ifURL('/catalogue/ser/tavistock', $domain.'series/the-tavistock-clinic-understanding-your-child.html'); ifURL('/catalogue/ser/therapeutic', $domain.'series/community-culture-and-change.html'); ifURL('/catalogue/ser/violence-abuse', $domain.'products'); ifURL('/catalogue/ser/whatworks', $domain.'products'); ifURL('/catalogue/ser/workingwithchildren', $domain.'series/best-practice-in-working-with-children.html'); ifURL('/catalogue/ser/writing', $domain.'series/writing-for-therapy-or-personal-development.html'); ifURL('/catalogue/ser/', $domain.'series.html'); ifURL('/catalogue/acupunctureherbalmed', $domain.'medical-and-complementary-health-practitioners/acupuncture-and-herbal-medicine.html'); ifURL('/catalogue/adoptionfostering', $domain.'adoption-fostering-and-parenting.html'); ifURL('/catalogue/adoption', $domain.'adoption-fostering-and-parenting/adoption.html'); ifURL('/catalogue/adultfiction', $domain.'autism-and-related-conditions/adults/fiction-and-autobiography.html'); ifURL('/catalogue/adultoverviews', $domain.'autism-and-related-conditions/adults/overviews.html'); ifURL('/catalogue/adultrelationships', $domain.'autism-and-related-conditions/adults/relationships.html'); ifURL('/catalogue/angeranxiety', $domain.'education/anger-anxiety-and-self-esteem.html'); ifURL('/catalogue/aromatherapy', $domain.'medical-and-complementary-health-practitioners/aromatherapy.html'); ifURL('/catalogue/artstherapies', $domain.'arts-therapies.html'); ifURL('/catalogue/arttherapy', $domain.'arts-therapies/art-therapy.html'); ifURL('/catalogue/autismactivities', $domain.'autism-and-related-conditions/children/activities-and-play.html'); ifURL('/catalogue/autismadults', $domain.'autism-and-related-conditions/adults.html'); ifURL('/catalogue/autismchildren', $domain.'autism-and-related-conditions/children.html'); ifURL('/catalogue/autismmentalhealth', $domain.'autism-and-related-conditions/adults/mental-health-and-wellbeing.html'); ifURL('/catalogue/autismoverviews', $domain.'autism-and-related-conditions/overviews.html'); ifURL('/catalogue/autismrelated', $domain.'autism-and-related-conditions.html'); ifURL('/catalogue/autismteens', $domain.'autism-and-related-conditions/teenagers-and-young-adults.html'); ifURL('/catalogue/bereavement', $domain.'counselling-psychiatry-and-psychology/bereavement.html'); ifURL('/catalogue/braininjury', $domain.'disability/brain-injury.html'); ifURL('/catalogue/bullying', $domain.'education/bullying-relationships-and-independence.html'); ifURL('/catalogue/challengingbehaviour', $domain.'autism-and-related-conditions/children/challenging-behaviour.html'); ifURL('/catalogue/childoverviews', $domain.'autism-and-related-conditions/children/overviews.html'); ifURL('/catalogue/childprotection', $domain.'social-work-social-care-health-and-criminal-justice/child-protection-and-assessment.html'); ifURL('/catalogue/childrenfamilies', $domain.'social-work-social-care-health-and-criminal-justice/children-and-families.html'); ifURL('/catalogue/chinesemed', $domain.'medical-and-complementary-health-practitioners/chinese-medicine-overviews-and-diagnosis.html'); ifURL('/catalogue/communication', $domain.'autism-and-related-conditions/children/communication-social-and-emotional-development.html'); ifURL('/catalogue/comphealth', $domain.'medical-and-complementary-health-practitioners/complementary-health.html'); ifURL('/catalogue/counsellingpsychiatr', $domain.'counselling-psychiatry-and-psychology.html'); ifURL('/catalogue/eatingdisorders', $domain.'counselling-psychiatry-and-psychology/eating-disorders.html'); ifURL('/catalogue/counselling', $domain.'counselling-psychiatry-and-psychology/counselling-and-psychotherapy.html'); ifURL('/catalogue/creativewriting', $domain.'arts-therapies/creative-writing.html'); ifURL('/catalogue/dancetherapy', $domain.'arts-therapies/dance-therapy.html'); ifURL('/catalogue/dementia', $domain.'social-work-social-care-health-and-criminal-justice/dementia.html'); ifURL('/catalogue/disability', $domain.'disability.html'); ifURL('/catalogue/disabilitylaw', $domain.'disability/disability-law.html'); ifURL('/catalogue/dramatherapy', $domain.'arts-therapies/dramatherapy-psychodrama-and-storymaking.html'); ifURL('/catalogue/educationcounselling', $domain.'education/counselling.html'); ifURL('/catalogue/education', $domain.'education.html'); ifURL('/catalogue/employment', $domain.'autism-and-related-conditions/adults/employment.html'); ifURL('/catalogue/expressivetherapies', $domain.'arts-therapies/expressive-therapies.html'); ifURL('/catalogue/familylife', $domain.'autism-and-related-conditions/children/family-life.html'); ifURL('/catalogue/forchildren', $domain.'martial-artists-and-the-general-reader/books-for-children.html'); ifURL('/catalogue/forensicpsychotherap', $domain.'counselling-psychiatry-and-psychology/forensic-psychotherapy.html'); ifURL('/catalogue/fostering', $domain.'adoption-fostering-and-parenting/fostering.html'); ifURL('/catalogue/highereducation', $domain.'education/higher-education.html'); ifURL('/catalogue/inclusiveclassroom', $domain.'education/inclusive-classroom.html'); ifURL('/catalogue/intellectualdisabili', $domain.'disability/intellectual-disability.html'); ifURL('/catalogue/law', $domain.'social-work-social-care-health-and-criminal-justice/law.html'); ifURL('/catalogue/learningresources', $domain.'autism-and-related-conditions/children/learning-teaching-and-assessment-resources.html'); ifURL('/catalogue/lowfunctioning', $domain.'autism-and-related-conditions/low-functioning-autism.html'); //ifURL('/catalogue/martialartsgenreader', $domain.'martial-artists-and-the-general-reader.html'); //ifURL('/catalogue/martialarts', $domain.'martial-artists-and-the-general-reader/martial-arts.html'); ifURL('/catalogue/medcomphealthpract', $domain.'medical-and-complementary-health-practitioners.html'); ifURL('/catalogue/medicalqigong', $domain.'medical-and-complementary-health-practitioners/medical-qigong.html'); ifURL('/catalogue/mentalhealth', $domain.'counselling-psychiatry-and-psychology/mental-health.html'); ifURL('/catalogue/multidisciplinary', $domain.'arts-therapies/multidisciplinary.html'); ifURL('/catalogue/musictherapy', $domain.'arts-therapies/music-therapy.html'); ifURL('/catalogue/nursing', $domain.'social-work-social-care-health-and-criminal-justice/law-5.html'); ifURL('/catalogue/nutrition', $domain.'medical-and-complementary-health-practitioners/nutrition-integrative-and-ayurvedic-medicine.html'); ifURL('/catalogue/occupationaltherapy', $domain.'social-work-social-care-health-and-criminal-justice/occupational-therapy.html'); ifURL('/catalogue/olderpeople', $domain.'social-work-social-care-health-and-criminal-justice/older-people-and-care-homes.html'); ifURL('/catalogue/otherconditions', $domain.'autism-and-related-conditions/adhd-dyspraxia-ocd-and-nvlds.html'); ifURL('/catalogue/ownstories', $domain.'autism-and-related-conditions/children/own-stories.html'); ifURL('/catalogue/parenting', $domain.'adoption-fostering-and-parenting/parenting-challenges.html'); ifURL('/catalogue/physicaldisability', $domain.'disability/physical-disability.html'); ifURL('/catalogue/picturebooks', $domain.'autism-and-related-conditions/children/fiction-and-picture-books.html'); ifURL('/catalogue/playtherapy', $domain.'arts-therapies/play-therapy.html'); ifURL('/catalogue/probationoffenders', $domain.'social-work-social-care-health-and-criminal-justice/probation-and-offenders.html'); ifURL('/catalogue/profdevelopment', $domain.'arts-therapies/professional-development.html'); ifURL('/catalogue/profdevmulti', $domain.'medical-and-complementary-health-practitioners/professional-development-and-multidisciplinary.html'); ifURL('/catalogue/psychiatry', $domain.'counselling-psychiatry-and-psychology/psychiatry.html'); ifURL('/catalogue/psychoanalysis', $domain.'counselling-psychiatry-and-psychology/psychoanalysis.html'); ifURL('/catalogue/psychology', $domain.'counselling-psychiatry-and-psychology/psychology.html'); ifURL('/catalogue/qigong', $domain.'martial-artists-and-the-general-reader/qigong.html'); ifURL('/catalogue/qualification', $domain.'social-work-social-care-health-and-criminal-justice/qualification-cpd-and-training.html'); ifURL('/catalogue/religiousspiritual', $domain.'religious-studies-and-spiritual-development.html'); ifURL('/catalogue/schoolcollege', $domain.'autism-and-related-conditions/teenagers-and-young-adults/school-college-and-beyond.html'); ifURL('/catalogue/schoolingyourchild', $domain.'autism-and-related-conditions/children/schooling-your-child.html'); ifURL('/catalogue/selfhelp', $domain.'martial-artists-and-the-general-reader/self-help-and-general-interest.html'); ifURL('/catalogue/singingdragon', $domain.'singing-dragon.html'); ifURL('/catalogue/socialworkadults', $domain.'social-work-social-care-health-and-criminal-justice/adults.html'); ifURL('/catalogue/socialworkcare', $domain.'social-work-social-care-health-and-criminal-justice.html'); ifURL('/catalogue/specialeducation', $domain.'education/special-education.html'); ifURL('/catalogue/speechtherapy', $domain.'disability/speech-therapy.html'); ifURL('/catalogue/spiritualdev', $domain.'martial-artists-and-the-general-reader/spiritual-development-and-adventure.html'); ifURL('/catalogue/teenfiction', $domain.'autism-and-related-conditions/teenagers-and-young-adults/fiction-and-autobiography.html'); ifURL('/catalogue/teenoverviews', $domain.'autism-and-related-conditions/teenagers-and-young-adults/overviews.html'); ifURL('/catalogue/teenrelationships', $domain.'autism-and-related-conditions/teenagers-and-young-adults/relationships-and-puberty.html'); ifURL('/catalogue/yogabodyworkgen', $domain.'martial-artists-and-the-general-reader/yoga-and-bodywork.html'); ifURL('/catalogue/yogabodyworkprof', $domain.'medical-and-complementary-health-practitioners/yoga-and-bodywork.html'); ifURL('/catalogue/youthwork', $domain.'social-work-social-care-health-and-criminal-justice/youth-work.html'); ifURL('/catalogue/', $domain.'products'); } else { // Singing Dragon $domain = 'http://singingdragon.com/'; ifURL('/cookies.php', $domain.'cookies'); ifURL('/forauthors.php', $domain.'write-for-us'); ifURL('/jkp.php', $domain.'about-us'); ifURL('/ordering/distributors.php', $domain.'distributors'); ifURL('/ordering', $domain.'delivery-times'); ifURL('/search', $domain.'catalogsearch/advanced'); ifURL('/contact.php', $domain.'contact/'); ifURL('/catalogue/author', $domain.'author/authors/list'); ifURL('/catalogue/author.php', $domain.'author/authors/list'); //ifURL('/catalogue/author/[lowercase letter]/author/authors/list?surname=[uppercase letter]'); ifURL('/catalogue/author/', $domain.'author/authors/list/'); ifURL('/catalogue/catalogues', $domain.'catalogs'); ifURL('/catalogue/forthcoming', $domain.'comingsoon'); ifURL('/catalogue/new', $domain.'newtitles'); ifURL('/catalogue/inspection.php', $domain.'inspection-copies'); ifURL('/catalogue/acupunctureherbalmed', $domain.'medical-and-complementary-health-practitioners/acupuncture-and-herbal-medicine.html'); ifURL('/catalogue/aromatherapy', $domain.'medical-and-complementary-health-practitioners/aromatherapy.html'); ifURL('/catalogue/chinesemed', $domain.'medical-and-complementary-health-practitioners/chinese-medicine-overviews-and-diagnosis.html'); ifURL('/catalogue/comphealth', $domain.'medical-and-complementary-health-practitioners/complementary-health.html'); ifURL('/catalogue/forchildren', $domain.'martial-artists-and-the-general-reader/books-for-children.html'); ifURL('/catalogue/martialarts', $domain.'martial-artists-and-the-general-reader/martial-arts.html'); ifURL('/catalogue/martialartsgenreader', $domain.'martial-artists-and-the-general-reader.html'); ifURL('/catalogue/medcomphealthpract', $domain.'medical-and-complementary-health-practitioners.html'); ifURL('/catalogue/medicalqigong', $domain.'medical-and-complementary-health-practitioners/medical-qigong.html'); ifURL('/catalogue/nutrition', $domain.'medical-and-complementary-health-practitioners/nutrition-integrative-and-ayurvedic-medicine.html'); ifURL('/catalogue/profdevmulti', $domain.'medical-and-complementary-health-practitioners/professional-development-and-multidisciplinary.html'); ifURL('/catalogue/qigong', $domain.'martial-artists-and-the-general-reader/qigong.html'); ifURL('/catalogue/selfhelp', $domain.'martial-artists-and-the-general-reader/self-help-and-general-interest.html'); ifURL('/catalogue/spiritualdev', $domain.'martial-artists-and-the-general-reader/spiritual-development-and-adventure.html'); ifURL('/catalogue/yogabodyworkgen', $domain.'martial-artists-and-the-general-reader/yoga-and-bodywork.html'); ifURL('/catalogue/yogabodyworkprof', $domain.'medical-and-complementary-health-practitioners/yoga-and-bodywork.html'); ifURL('/catalogue/ser/10minuteprimers', $domain.'series/10-minute-primers.html'); ifURL('/catalogue/ser/chinesehealthqigong', $domain.'series/chinese-health-qigong.html'); ifURL('/catalogue/ser/daoyinyangshengong', $domain.'series/dao-yin-yang-shen-gong.html'); ifURL('/catalogue/ser/internationalacupuncture', $domain.'series/international-acupuncture-textbooks.html'); ifURL('/catalogue/ser/principlesof', $domain.'series/discovering-holistic-health.html'); ifURL('/catalogue/ser/fiveelementacupuncture', $domain.'author/authors/view/id/nora-franglen-6731'); ifURL('/catalogue/ser/daxuan', $domain.'series/da-xuan.html'); }