1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Tuning XAMPP

Discussion in 'Apache' started by ripcurlksm, Jul 16, 2009.

  1. #1
    My local project folder is:
    http://localhost/site/
    -or-
    C:\xampp\htdocs\site

    The links in my site are with a "/":
    <a href="/about.php">About Us</a>

    These links work great on my server, but locally I am trying to change a few things around. The problem with the link above is that apache is rendering the link as:

    Instead of:
    What can I do to tell Apache in my "site" folder to look within that directory?
    1) I've tried to modify my httpd.conf file to point the server directory at "http://localhost/site/", but its not working. Ive tried restarting the server with no luck. Links still are pointing to "http://localhost/about.php" instead of "http://localhost/site/about.php"

    2) I've also tried using <base> tag to force the "http://localhost/site/" prefix on the links with no luck...

    What should I do?
     
    ripcurlksm, Jul 16, 2009 IP
  2. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #2
    Why do u put it as

    <a href="/about.php">About Us</a>

    When

    <a href="about.php">About Us</a>

    should do what u want
     
    Bohra, Jul 16, 2009 IP
  3. ripcurlksm

    ripcurlksm Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Because I have multiple directories that use this same navigation include file. For example:

    nav.php
    If I have an index file in the main directory, this above navigation will work, or your suggestion will work.

    But what if I have a directory that I want to include the same nav.php file like "website.com/press/press1.php"? If i use your suggestion, the navigation link will point to "website.com/press/about.php" instead of referencing the main directory "website.com/about.php".

    Follow?
     
    ripcurlksm, Jul 16, 2009 IP