[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Cannot configure XAMPP for local root

Posted on 2008-11-05
Medium Priority
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

Assisted Solution

shirazti earned 500 total points
ID: 22894120
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

caterham_www earned 1000 total points
ID: 22894278
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

yessirnosir earned 500 total points
ID: 22895372
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 www.mydomain.com, 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:  http://drupal.org/node/161975


Author Closing Comment

ID: 31513801
Thanks all ;-))

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses
Course of the Month20 days, 8 hours left to enroll

868 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