cloudays laravel应用程序中的htaccess
在cloudways服务器上上载我的laravel项目时,我收到错误消息:403禁止您没有访问/在此服务器上的权限 共享主机中的同一个项目运行良好 我的目录结构: 我的公共目录: 我的.htaccesscloudays laravel应用程序中的htaccess,laravel,.htaccess,Laravel,.htaccess,在cloudways服务器上上载我的laravel项目时,我收到错误消息:403禁止您没有访问/在此服务器上的权限 共享主机中的同一个项目运行良好 我的目录结构: 我的公共目录: 我的.htaccess <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews -Indexes </IfModule> RewriteEngin
<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>
require __DIR__.'/vendor/autoload.php';
$app = require_once __DIR__.'/bootstrap/app.php';