我有一个关于通过.htaccess重定向web文件夹的问题。只重定向一个文件夹,但不是子链接
我有一个文件夹,域名如example.com/abc
,我可以将此链接重定向到example.com/aaa
链接。但是abc目录中有HTML文件,例如example.com/abc/1.html
,当我将abc文件夹重定向到aaa链接时,它也会重定向这些HTML地址,如example.com/aaa/1.html
。
我想:
重定向example.com/aaa
(文件夹)example.com/abc
(网页)
我不想:
重定向example.com/aaa/1.html
到example.com/abc/1.html
是否有可能只重定向文件夹地址但不是子链接?