Search code examples
phpxampplocalhost

Cannot access to localhost/xampp/index.php


I just installed XAMPP for windows 7, control panel seems to work fine, I started MySql and Apache, the problem I have is, when I type localhost in my browser "Google Chrome" it sends me to "http://localhost/dashboard/"

when I change the url to "//localhost/xampp/index.php", it tells me: "Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.

Error 404

localhost Apache/2.4.16 (Win32) OpenSSL/1.0.1p PHP/5.6.11"

anyone can helps me out with this? Thanks.


Solution

  • Ok, Create a page yourpage.html / yourpage.php whatever, you have to put all your pages in a folder in C:\Xampp\htdocs\ dir

    Then try accessing following url:

    localhost/yourpage.html

    or

    localhost/yourpage.php

    That should work.