Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
  • php update question (In: Coding & Databases - PHP, ASP, Perl, etc.)
  • A question about article submit (In: Directories and Link Building)
  • Featured Web Site Template

    Hundreds More at Free Site Templates.com!

    Web Site Partners
    Sponsored Links
    Jet City Software
     
    Whos Here ?
    Reflects user activity within the last 5 minutes
    Moderator(s): Dinkar, Logan
    Member Message

    SportsGuy
    Staff
    Joined: Aug 30, 2002
    # Posts: 3603

    View the profile for SportsGuy Send SportsGuy a private message

    Posted: 2008-Aug-22 14:08
    Edit Message Delete Message Reply to this message

    I tried just adding this to a global common.vbs file:

    Response.Status = "301 Moved Permanently"
    Response.AddHeader ("Location", "http://www.domain.org/"wink
    Response.End

    When I try to load a page, I get an error saying the redirect will never resolve. I figured the Response.Edn would've stopped it. It seemed to fundamentally work though as the address bar changed from http://save... to http://www.save... it just couldn't load the page.

    Could you give me any insight as to why it's doing this, or how to fix? Thank you for any help you may have


    Received via IM, just wanted to get more eyeballs on this for the sender.



    Dinkar
    Staff
    Joined: Aug 12, 2001
    # Posts: 4391

    View the profile for Dinkar Send Dinkar a private message

    Posted: 2008-Aug-22 16:43
    Edit Message Delete Message Reply to this message

    I am not much familiar with common.vbs but I can guess....

    The common.vbs file will be executed for http://save... and http://www.save..., both time.

    So when you type http://save... it redirect you to http://www.save...

    and when http://www.save... try to load, common.vbs gets executed again and it again redirect you to http://www.save...

    So the redirect will never resolve.

    Can you give some conditional statement like -

    If request is for http://save... then ONLY server should redirect it to http://www.save...

    This is the only solution, I guess.



    g1smd
    Staff
    Joined: Jul 28, 2002
    # Posts: 10465

    View the profile for g1smd Send g1smd a private message

    Posted: 2008-Aug-22 19:53
    Edit Message Delete Message Reply to this message

    That sounds like the answer, or something close to it.

    The Live HTTP Headers extension for Mozilla Firefox will give you more clues.


    You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
    1. You have not yet logged in, or registered properly as a member
    2. You are a member, but no longer have posting rights.
    3. This is a private forum, for which you do not have permissions.

    If you are a recent member, it's possible that you simply have not yet confirmed your account. Please check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions contained within.

    If you cannot find this message, click here to Re-Send it.

    If you are still experiencing problem, please read the Login Assistance Article for some advice on what may be causing your login not to work properly.

    Switch to Advanced Editor and ... Create a New Topic or Reply to this Thread

    New posts Forum is locked
    © 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions