Object not found - XAMPP

I recently installed XAMPP on my laptop - windows-7 64-bit. I just wrote a very basic and elementary "Hello World" script in HTML. But, however when i'm trying to run it, it says Object Not found. Error 404.

Here's what i'm doing:

  1. Wrote the script.
  2. Saved it as test.html in xampp/apache/htdocs.
  3. Opened the browser, typed localhost/test.html in the space provided for the URL.

The bizarre thing is, i am able to run the index.html file stored in xampp/apache/htdocs. And i'm also able to run the localhost page. But any new page that i'm creating, i'm unable to run it. Please help me solve this problem.

Thank you in advance :)

Answers


It seems xampp is not able to locate your file.

Check DocumentRoot setting in XAMPP\apache\conf\httpd.conf to find currently it is pointing to which folder.

If you want you can point it to some other folder like,

D:/phpprojects/

By the way, You sure htdocs is in xampp/apache/htdocs ? Mine is in xampp/htdocs.


if problem is in linux Folders not should be cut from Windows into Linux folders permissions not set . change it


You just need to change the root of project from xampp/apache/htdocs to xampp/htdocs.

I mean your project folder has to be in xampp/htdocs root .(e.g: xampp/htdocs/project).

And your project address will be localhost/project


Need Your Help

How to update metadata media file from azure storage or media serviceazure

c# azure metadata id3 id3v2

I would like to change media file metadata from medias hosted in my azure storage like "author", "artist" and others tags.

Php mail(), how to get undelivered address list?

php email logging

I'm getting single emails, for each undelivered address that mail() send couldn't reach.