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
页面,这是一个路由页面?