【发布时间】:2023-03-14 07:57:01
【问题描述】:
我需要 301 将请求重定向到没有扩展名的文件与附加的 .html 扩展名相同:
http://www.mydomain.com/this
到
http://www.mydomain.com/this.html
以下内容不会被重定向:
http://www.mydomain.com/that/ (it's a directory)
http://www.mydomain.com/other.php
对上述任何帮助表示赞赏,谢谢。
【问题讨论】:
标签: .htaccess mod-rewrite redirect