Yes I did eventually fix my issue. Basically what i did was in the for loop, put a case statement in based on the first subfolder(which is the first element in the array). I then redirected based on that. Thanks for the help you provided.
Well, on IPlanet, the server-side platform I am forced to use is HTML, and I am embedding javascript into that code. that is why I am posting on this forum.
Thanks in advance,
Sheel
Dan,
I apologize for the confusion, but I am going to be doing this on the server, by coding this as a custom 404 page. The code above is what I have so far, and what I have in my head is that I would have an if loop that checks the folder name and redirect based on that.
Thanks,
Sheel
Well, actually I am planning to do it as a custom 404 page server-side. So say a user accesses a page as https://mywebpage.net/sheel, it would take that as a 404 page, and then parse that URL, then redirect based on the 'sheel' subfolder.
It may not always be on the same level as well. It's...
Hello all,
I am brand new to coding javascript, and I am trying to code a redirect page based on the folder name. I have an IPlanet web server, and have begun to code this page. So far I have been able to split the URL based on the slashes '/'. Here is what code I have so far:
<HTML>
<BODY>...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.