1.
将我的文件上传到000webhost.我将所有文件从公用文件夹放置到public_html,然后创建了一个名为laravel的文件夹,并在那里上传了所有其他文件.这是我的目录的结构:
laravel
app
bootstrap
config
….
public_html
index.html
…..
3.
我还更改了laravel / config文件夹中的.env文件和database.PHP问题:
I am Now able to access the home page of my site, but when I click my links to the other pages error 404 shows up.
How do I fix this?
And how do I access the routes in my api.PHP ?
谢谢!
解决方法:
您的收录似乎还不错.
确保您还上传了位于/ public(在/ public_html中)的.htaccess文件.文件名以点开头,因此通常是隐藏的.
该文件的目的是指示Apache如何将URL映射到实际文件(在这种情况下,所有内容都应指向index.PHP)