简体   繁体   中英

Xampp with php is not running

I am new to php i have downloaded the php and i have started the Apache and mysql in Xampp server. Now I have created the folder called hello and i have a file index.php. Now if i run using this url http://localhost/hello/index.php it shows the Error message of.

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.23 (Win32) OpenSSL/1.0.2h PHP/5.5.38 在此输入图像描述 How to solve this.

Try to open Xampp with administrator i think it will solve this problem

Or HTACCESS in root folder

Options -MultiViews

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]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM