Help with PHP and Apache

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mark1822@hotmail.com

    Help with PHP and Apache

    Hello,

    I am trying to set up a Web site I am building so that it works like
    this:

    When someone goes to: www.runningback.com/reg

    The "reg" get's passed into index.php as an argument and index.php is
    executed.

    I can pick up "reg" in index.php using $_SERVER['PATH_INFO'].

    But right now what happens is the url is not recognized by Apache 1.3
    and so gives me an error.

    If I call www.runningback.com it calls index.php just fine, but not
    when I want to pass in an augument. I'm trying to make user friendly
    urls.

    Does anybody know how I can configure apache so that this works the way
    I want it to, and preferably through just using an .htaccess file?
    Thanks
    Nick Mudge

Working...