【发布时间】:2016-01-18 21:08:51
【问题描述】:
我在 index.php 中有问题。当我尝试运行应用程序时,我会在浏览器中看到 index.php 的文本。
我正在使用 ubuntu。 我最近从 Windows 切换到应用程序在 xampp 上运行良好。以下是我的目录结构截图。
以下是 .htaccess 文件。
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
【问题讨论】:
-
那你的服务器上没有php或者没有激活。
标签: php .htaccess laravel laravel-5 laravel-routing