重定向到htaccess中的子文件夹

时间:2018-12-06 10:47:24

标签: .htaccess redirect deployment

我正在使用原子sftp(与Deploybot一起)来部署我的项目。这会在我的/ www文件夹中创建一些文件夹

我的网站在/ www / current /文件夹中

所以我已经联系了托管服务提供商,他们说我应该在/ www中创建一个htaccess文件,以重定向到/ www / current /文件夹。

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /current/index.php [L]
</IfModule>

但是当我尝试访问我的网站时,仍然收到与以前相同的错误:

Forbidden
You don't have permission to access / on this server.

0 个答案:

没有答案