SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Member
    Join Date
    Jun 2001
    Location
    West Coxsackie, NY
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    redirect question

    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 /.
    Thanks, pat

    <html>
    <head>
    <script language="JavaScript"><!--
    if (document.images)
    location.replace('http://lrc102.lightingresearch.org/sclp/homepage.html')
    else
    location.href = 'http://www.nyserda.org/sclp/index.html';
    //--></script>
    <noscript>
    <meta http-equiv="Refresh" content="1;url=http://www.nyserda.org/sclp/index.html">
    </noscript>
    <title>NYSERDA - SCLP redirect</title></head>
    </html>

  2. #2
    SitePoint Guru
    Join Date
    Sep 1999
    Location
    Singapore
    Posts
    854
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Any particular reason why your manager insists on not having a slash at the end?

  3. #3
    SitePoint Member
    Join Date
    Jun 2001
    Location
    West Coxsackie, NY
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    redirect again

    I asked the same question, but the answer is that "they've already marketed the address." Can't believe they didn't ask first.

    Pat

  4. #4
    SitePoint Zealot
    Join Date
    Mar 2001
    Location
    Los Angeles
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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?
    bsacks
    http://www.middlepeak.com

  5. #5
    SitePoint Member
    Join Date
    Jun 2001
    Location
    West Coxsackie, NY
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    reply

    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.

    thanks,

    pat

  6. #6
    SitePoint Zealot
    Join Date
    Mar 2001
    Location
    Los Angeles
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yes, it did what you described from here as well.
    Do you know what type of server you are on?
    bsacks
    http://www.middlepeak.com

  7. #7
    SitePoint Guru
    Join Date
    Sep 1999
    Location
    Singapore
    Posts
    854
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.
    Last edited by duckie; Jun 19, 2001 at 12:01.

  8. #8
    SitePoint Member
    Join Date
    Jun 2001
    Location
    West Coxsackie, NY
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    thanks

    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.

    pat


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •