I used the script below, but the project manager wants it to go to www.nyserda.org/sclp - without the / at the end - I can't get it to work. Any idea of what I'm doing wrong? (There is also a subdirectory off the sclp directory with another redirect in it that they also want without the /.
location.href = 'http://www.nyserda.org/sclp/index.html';
<meta http-equiv="Refresh" content="1;url=http://www.nyserda.org/sclp/index.html">
<title>NYSERDA - SCLP redirect</title></head>
Any particular reason why your manager insists on not having a slash at the end?
I asked the same question, but the answer is that "they've already marketed the address." Can't believe they didn't ask first.
Well you will also be able to change the default page without changing the script.
Speaking of the default page, have you checked it, the permissions, and the page itself on the destination site.
Also, what is the error you are getting?
Is it a 404, or some other error?
It's a 404 - if I type the / at the end, it comes up (actually, I have to test it from home, because our cache here at work needs to be cleared - if I type www.nyserda.org/sclp it comes up with an incorrect address on the proxy server as www.nyderda.org/sclp - the d instead of an s in nyserda, and then it adds the slash when I correct the d to an s on the address line in IE - I've asked the IT people to clear it - I'm the only one doing the pages, and don't have much experience, but I don't have anything to do with the mechanics of the site.
yes, it did what you described from here as well.
Do you know what type of server you are on?
Its a server side thing.
You see, what happens is, when you request for http://www.nyserda.org/sclp the server will process it and send the correct URL back to the browser, which is http://www.nyserda.org/sclp/ with a slash, which the browser will then use to grab the proper stuff. Apparently there is a typo somewhere in the server settings causing the wrong URL to be returned. You will have to sort it out with your IT people.
I'm going to talk to our IT people now about that nyderda thing. I know it's not in the script that way, so I can't figure out how it got to the server that way.