我需要从旧的非wordpress网站重定向页面,该网站已转换为wordpress网站,并且该页面不再存在于wordpress网站的不同域中 .

原始路径: http://example.com/exams.html 新路径: https://example2.com/exams/

这在我的.htaccess文件中根本没有做任何事情,当我访问网站上的页面时它会出现404错误,因为在wordpress中不存在exams.html文件,我想.htaccess文件被忽略了?

RedirectMatch 301  http://example.com/exams.html https://example2.com/exams/

*已编辑添加信息网站位于Host Gator共享主机上 . domain.com是该帐户的主要网站 . domain.com位于public_html / domain.com /子文件夹domain2.com驻留在public_html / domain2.com /子文件夹中