nginx server daemon used before apache server used in the local development project, I did not expect to switch to always display 404 error pages are not accessible when online access, online search found a configuration problem with nginx.
Open nginx configuration file, add this line at the end
location / {
try_files $uri $uri/ /index.php?$query_string;
}
Restart nginx service, problem solving, that laravel default is apache-friendly, using nginx server also need to configure the look
In addition, I had thought that nginx does not support .htaccess file, and later found nginx is supported only in the configuration file in nginx
include / file path /.htaccess
On it, and add this line in the configuration file
location ~ /\.ht {
deny all;
}
You can prevent direct external access to your .htaccess file