XAMPP Object not found error
Drixson Oseña you are right but when you newly install xampp on your system "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.7 (Win32) OpenSSL/1.0.1e PHP/5.5.6"
However all folder in the htdocs but only open is that xampp website because of index.php error, so that's not a big deal just remove the index.html and index.php and try to open localhost again you'll be succeed.
Just make sure you have the .htaccess
in your project's public directory
If you don't have the file then create one and paste the below code in your .htaccess
file.
Code:-
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
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.
You're having problem because the object really doesn't exist in your htdocs directory.
You don't have to append xampp
after localhost or 127.0.0.1 because xampp
will treat it as an object or a folder under htdocs.
if you want to access your blog, make sure you have a blog folder under htdocs and put in your URL localhost/blog
The issue is the object(project) folder and it is really not in the localhost.
Check the following things (Windows User)
1. project folder in htdocs
2. spelling of the project folder in htdocs C:\xampp\htdocs\projectname
3. Public folder inside project folder C:\xampp\htdocs\projectname\public