0
当我在Plesk上上传我的网站时,我无法访问我的路由。我得到404错误 我正在使用Laravel 4.2版本Laravel在Plesk路由问题
我将默认目录设置为httpdocs/public/ 以下是公共文件夹中的.htaccess文件。
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
RewriteBase/
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule^index.php [L]
请帮忙。
如果您删除了httpdocs中的所有内容,然后创建一个名为“public”的目录,并在其中包含index.html文件,那么当您访问'http:// www.yourdomain.com'而没有'/ public /'? – Joseph
我现在可以看到我的头版了。但不是其他路线,如/ login或/ regiser。 – kirobo
如果你的主页工作正常,你没有改变'.htaccess'中的任何东西,那么我会猜想mod_rewrite没有启用。这是一个新的服务器,你有SSH访问? – Joseph