Page 1 of 1

Error 404 : Object not found

PostPosted: 08. May 2013 10:53
by Aysel
Hello,

I have just started learning PHP and have installed XAMPP 1.8.0
I was able to execute codes in starting. The problem occurred a few days after installation, for all the pages I had created, local host started giving error 404. Tried to restore computer, was able to execute code again, but after 1 hour again same error (404) is coming, for all the files which were being executed earlier or the new one.

The only page which is executed now is index, which is in htdocs since installation(by default). But, if I try to create a new page with same code, again 404 error is coming. Have tried to run as administrator and change MySql password, nothing works.

Kindly provide resolution at the earliest.

Re: Error 404 : Object not found

PostPosted: 08. May 2013 10:58
by Altrea
Hi Aysel,

Where are the files saved (full path)?
What address does your browsers address bar show?

best wishes,
Altrea

Re: Error 404 : Object not found

PostPosted: 08. May 2013 11:01
by Aysel
Thanks for your quick reply.

URL : http:/localhost/xampp/filename.php

Re: Error 404 : Object not found

PostPosted: 08. May 2013 11:02
by Aysel
files are saved in htdocs directly within Xampp folder in C drive

Re: Error 404 : Object not found

PostPosted: 08. May 2013 12:23
by Altrea
Aysel wrote:files are saved in htdocs directly within Xampp folder in C drive

So your files are saved in C:\xampp\htdocs\ ?
Then the "xampp" in your url is wrong.

http://localhost/xampp/ routes to C:\xampp\htdocs\xampp\

Re: Error 404 : Object not found

PostPosted: 09. May 2013 09:27
by Aysel
Thanks Altrea, that did the trick.
...was such a silly thing to ignore on my part.