Jump to content


Problems with the relative path.

  • Please log in to reply
No replies to this topic

#1 Jose C.

Jose C.
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 23 February 2006 - 11:59 AM

Hi there. I have a problem with Apache. Whenever I insert a php file's relative path in a website's link:

for example: <a href="new.php">New</a>

the server tries to download the php file instead of running it through the server. It seems Apache doesn't automatically interpret .php files when using relative paths. To make it work, I have to insert the absolute path, something like:

<a href="http://localhost/web...ew.php">New</a>

It works, but that's just a temporary solution. I'm wondering if I accidentally modified something in the Apache configuration file, or if there's something I'm supposed to modify but haven't. Any of you know how can I solve this problem?

Thanks a lot in advance.

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users