将我的网站传输到具有新文件结构和文件扩展名的新CMS后,我需要将所有以/或index.html结尾的文件重定向到。 SHTML:.htaccess将以/或index.html结尾的文件重定向到.shtml
example.com/violent-crimes/assault-with-a-deadly-weapon/
到
example.com/violent-crimes/assault-with-a-deadly-weapon.shtml
example.com/violent-crimes/assault-with-a-deadly-weapon/index.html
至
example.com/violent-crimes/assault-wi TH-A-致命-weapon.shtml
example.com/violent-crimes/index.html
到
example.com/violent-crimes.shtml
example.com/violent-crimes/
到
example.com/violent-crimes.shtml
非常感谢,如何将example.com/test.html重定向到example.com/test.shtml – user1755258