122
rated 0 times
[
128]
[
6]
/ answers: 1 / hits: 27974
/ 11 Years ago, fri, august 2, 2013, 12:00:00
If someone types in 'www.morgancc.edu', I want it to redirect to our mobile site located at 'www.morgancc.edu/m' However, I only need to redirect with this exact URL. I don't want it to redirect if you go to something like 'www.morgancc.edu/programs', which is what it is currently doing. Here is the code I have so far:
<script type=text/javascript>
if (window.location = www.morgancc.edu) {
window.location.href = 'http://www.morgancc.edu/m/';
}
</script>
More From » redirect