Php 发布了一个Laravel应用程序,但我只能访问Frontpage,没有下站点
我已将我的Laravel应用程序上载到主机中的一个子目录(无根目录),因此它看起来像: websites/myapp/index.php 在“myapp”子目录中,我拥有Laravel公用文件夹中的所有文件 我有一个.htaccess,位于网站/myapp/.htaccess中,如下所示:Php 发布了一个Laravel应用程序,但我只能访问Frontpage,没有下站点,php,laravel,.htaccess,deployment,routing,Php,Laravel,.htaccess,Deployment,Routing,我已将我的Laravel应用程序上载到主机中的一个子目录(无根目录),因此它看起来像: websites/myapp/index.php 在“myapp”子目录中,我拥有Laravel公用文件夹中的所有文件 我有一个.htaccess,位于网站/myapp/.htaccess中,如下所示: <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews -Index
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
所以,实际上我只能访问主页,而不能访问其他页面
我已经阅读了大量的.htaccess教程,但它只是变得更加混乱。我不知道要在.htaccess中更改什么,以便正确重定向
欢迎提供任何帮助像这样尝试,
mydomain.com/public/about_-us
@arun不是为了改变路线。是关于除了主页之外,没有其他任何页面的访问权限,即没有主页。storage\logs\laravel.log
u可以检查此文件以了解确切的信息error@arun那里什么都没有。空的。这是一个刚刚部署但尚未启动的应用程序,因为我无法配置服务器来查找它。
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.4.29 Server at gerichtsfest.eu Port 80