0
我的.htaccess文件看起來是這樣的:.htacces重定向文件夾鏈接到index.php路由頁
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
我有一些<a>
鏈接,等於文件夾名稱。例如。現在
www.mysite.com/test/scripts/ is a folder path
<a href="/test/scripts/"> is the link
我的問題是,如果一個鏈接指向一個文件夾中,我得到的403 - Forbidden
錯誤。 如何修改我的.htaccess
以將與文件夾匹配的鏈接重定向到index.php
頁面,這是一個路由頁面?