Cannot configure XAMPP for local root

Posted on 2008-11-05
Last Modified: 2012-06-21
I use XAMPP and Dreamweaver CS3 for web development and I have an irritating problem i just can't get.

XAMPP is installed in C:\ so the site I'm currently trying to design is in C:\Xampp\Htdocs\Aryakas .

I have an index.php file in this folder which contains the following testing  menu...

               <li><a href="index.php" title="Home"><span>Home</span></a></li>
            <li><a href="about.php" title="About"><span>About</span></a></li>
            <li><a href="/dogs/boys/boy1.php" title="Our Dogs"><span>Our Dogs</span></a></li>
            <li><a href="#" title="Contact"><span>Contact</span></a></li>

However , when I hover over the third link the browser shows whereas the page is actually at so I get page not found

What am I doing wrong?

I've attached the FTP settings in Dreamweaver
Question by:chrisfixit
    LVL 7

    Assisted Solution

    Try this "dogs/boys/boy1.php"
    <a href="dogs/boys/boy1.php" title="Our Dogs"><span>Our Dogs</span></a>

    Open in new window

    LVL 27

    Accepted Solution

    You used an absolute path, but it looks like the full path is "/aryakas/dogs/boys/boy1.php", so you've to include the folder /aryakas/, too, because it's part of your path. The domain does not point to C:\Xampp\Htdocs\Aryakas (in that case "/dogs/boys/boy1.php", would be correct) but C:\Xampp\Htdocs\.

    If you'd lik to use a relative link, remove the leading slash  -> "dogs/boys/boy1.php".  But if you're e.g. in the folder /aryakas/dogs/, a relative link must be adjusted.
    LVL 14

    Assisted Solution

    Hi chrisfixit, not sure if you have a reason for using FTP for your testing server, but just in case you weren't aware, you do have the option of using the "Local/Network" access option.  Have attached a screenshot showing you my setup for testing, with a local XAMPP testing server.  

    Also, each of my sites is setup with an entry in the hosts file to allow me to refer to the local version of the website by name, rather than "".

    eg for a real website, I add this line to my "hosts" file:       mydomain.local
    Then I just type "mydomain.local" in my browser to view the local testing version of the site.  

    I originally followed these instructions for setting up my testing server:

    LVL 1

    Author Closing Comment

    Thanks all ;-))

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
    If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
    This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now