XAMPP Object not found error

2020-02-05 06:16发布

I have just installed XAMPP on my machine, and when trying to access sub folders in htdocs I get the following error.

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.4 (Win32) OpenSSL/0.9.8y PHP/5.4.19"

What default security changes do I need to make in order to access child folders of htdocs? Thanks!

13条回答
Animai°情兽
2楼-- · 2020-02-05 06:43

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

查看更多
甜甜的少女心
3楼-- · 2020-02-05 06:44

Agree @Drixson Oseña: You should not write localhost/xampp/...., else write for e.g: localhost/mw-config/index.php

查看更多
做自己的国王
4楼-- · 2020-02-05 06:47

First you have to check if FileZilla is running on xampp control panel Than such error can occur You have to stop the FileZilla service from Xampp control panel

查看更多
Lonely孤独者°
5楼-- · 2020-02-05 06:51

I had recently the same issue, It might not be the same as your case, but if anyone has a similar situation as mine, somehow I deleted the .htaccess file in the root of my app, so I copied it back from a backup and it worked

查看更多
Deceive 欺骗
6楼-- · 2020-02-05 06:53
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

查看更多
【Aperson】
7楼-- · 2020-02-05 06:53

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>
查看更多
登录 后发表回答