我有一个建立在Laravel 9上的网站.现在,出于某种原因,我需要在根目录(Httpdocs)中添加一个名为"News"的文件夹/目录.
当我访问我的网站(如mywebsite.com)时,Laravel网站的罚款与预期不谋而合,但当我访问mywebsite.com/News时,Laravel机制启动并显示错误页面.
所以我的问题是,当我访问"新闻"目录和"新闻"中的内容时,如何才能(通过.htaccess或等)使Laravel不被激活?
My.htAccess in root目前有这三行
RewriteEngine on
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
而public文件夹中的.htaccess包含以下内容-
<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]
# Send Requests To Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
我在使用apache Plesk服务器.There are similar looking questions on StackOverflow but none mets my requirement个