应用程序将我重定向到mainURL / assets

时间:2017-04-14 05:42:32

标签: php laravel .htaccess http-status-code-403

它是我的.htaccess文件。当我将manURL添加到浏览器时,我需要mainURL/assets/并显示 403错误。在这里,我需要选择mainURL/bnmainURL/en等语言。

<IfModule mod_rewrite.c>
        <IfModule mod_negotiation.c>
            Options -MultiViews
        </IfModule>

        RewriteEngine On

        # Redirect Trailing Slashes If Not A Folder...
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)/$ /$1 [L,R=301]

        # Handle Front Controller...
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^ index.php [L]

        # Handle Authorization Header
            RewriteCond %{HTTP:Authorization} .
            RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>

0 个答案:

没有答案