重定向/和index.html到新的url

重定向/和index.html到新的url,html,regex,apache,.htaccess,redirect,Html,Regex,Apache,.htaccess,Redirect,我想将index.html和/重定向到同一域上的new-url.html 事实上我有 Redirect 301 /index.html http://www.domain.com/new-url.html 这很有效。但当我加上 Redirect 301 / http://www.domain.com/new-url.html 它不起作用,这就是结果 http://www.domain.com/new-url.htmlnew-url.htmlnew-url.htmlnew-url.htmlne

我想将index.html和/重定向到同一域上的new-url.html

事实上我有

Redirect 301 /index.html http://www.domain.com/new-url.html
这很有效。但当我加上

Redirect 301 / http://www.domain.com/new-url.html
它不起作用,这就是结果

http://www.domain.com/new-url.htmlnew-url.htmlnew-url.htmlnew-url.htmlnew-url.htmlnew-url.htmlnew-url.htmlnew-url.htmlnew-url.htmlnew-url.html

我的重定向有什么问题?

使用
RedirectMatch
代替正则表达式支持:

RedirectMatch 301 ^/(index\.html)?$ http://www.domain.com/new-url.html