#1
  1. No Profile Picture
    Baudchaser
    Guest
    Devshed Newbie (0 - 499 posts)
    I got the xitami/php3/mysql installation to work almost perfect on my Win NT 4.0 server at home.

    But it seem to be a annoying problem which I'm not able to fix...

    When using the <? header("Location: /") ?> tag in php3 (which autodirects to the link you specify), I get a "URL not found on this server"...

    I have tried a lot of things to avoid this, but nothing seems to help.

    Most php3 scripts utilize this function in PHP3, and they are worthless until I get this problem solved.

    Anyone have an idea?

    Best regards,
    Baudchaser

    webmaster www.gameaddicts.net
  2. #2
  3. No Profile Picture
    donarb
    Guest
    Devshed Newbie (0 - 499 posts)
    Location headers must contain an absolute URI, you cannot use a relative one. So, your code should look something like this:

    <? header("Location: http://www.gameaddicts.net"); ?>

    For more on the Location header, see the HTTP 1.1 specification:
    http://www.w3.org/Protocols/rfc2068/rfc2068

    Don
  4. #3
  5. No Profile Picture
    markdrayton
    Guest
    Devshed Newbie (0 - 499 posts)
    Where are you trying to get directed to? If it's just the root dir of your web server, try <? header("Location: http://127.0.0.1/"); ?> or similar instead of just /.

    Also, relative URLs do work in HTTP headers...

Similar Threads

  1. Replies: 0
    Last Post: February 9th, 2004, 07:23 PM
  2. webserver on a network?
    By aplus in forum Apache Development
    Replies: 10
    Last Post: November 30th, 2003, 03:07 PM
  3. $_GET and $_POST vars the same under Xitami?
    By natedogg in forum PHP Development
    Replies: 4
    Last Post: September 29th, 2003, 03:23 PM
  4. Apache2 w/ php4 as DSO.. but I need to revert to php3
    By JunkCookie in forum PHP Development
    Replies: 0
    Last Post: August 11th, 2003, 03:05 PM
  5. Anyone using the Xitami webserver?
    By Robert_J_Sherman in forum PHP Development
    Replies: 7
    Last Post: July 8th, 2001, 09:26 PM

IMN logo majestic logo threadwatch logo seochat tools logo