So I am using this current script below:
<script type="text/javascript">
if (window.location.href.indexOf('thevault') > -1) {
//window.location = 'http://thevault.co.uk/index.phtml?d=512060’;
window.location = '/index.phtml?d=512060';
} else {
//window.location = 'http://www.jths.co.uk/index.phtml?d=541300';
window.location = '/index.phtml?d=541300';
}
</script>
Which works fine, however I want to add another condition
if the url is: http://www.nationalforestteachingschool.co.uk , then go to this page:
https://thevault.jths.co.uk/index.phtml?d=550968
I have tried the else if command but can't seem to get it working, this needs to be in one continous script, any ideas??
See Question&Answers more detail:os