.htaccess RedirectMatch规则在测试中有效,但在实时站点上无效

.htaccess RedirectMatch规则在测试中有效,但在实时站点上无效,.htaccess,redirect,http-status-code-301,.htaccess,Redirect,Http Status Code 301,我实施了这条规则: RedirectMatch 301^/product/index.php/product/(.*)/product/$1 目的是将顶部URL更改为底部URL: http://example.com/product/index.php/product/fresh-water http://example.com/product/fresh-water 在规则上有效,但是在它重定向到的实时测试站点上 http://example.com/ 我的重定向规则中是否存在错误,或者问题是

我实施了这条规则:

RedirectMatch 301^/product/index.php/product/(.*)/product/$1

目的是将顶部URL更改为底部URL:
http://example.com/product/index.php/product/fresh-water
http://example.com/product/fresh-water

在规则上有效,但是在它重定向到的实时测试站点上

http://example.com/

我的重定向规则中是否存在错误,或者问题是否存在于其他地方

完全访问

Options +FollowSymLinks
RewriteEngine On
# Redirects erroneous races pages to correct URLs
RedirectMatch 301 ^/product/index.php/product/(.*) /product/$1
RedirectMatch 301 /index.php/product/(.*) /product/$1
# END 301 redirects

当然,会将其添加到我的问题中。请在新浏览器中进行测试。如果这不起作用,那么在Chrome开发工具中测试,禁用缓存,并在“网络”选项卡中签入您得到的301/302重定向URL。在新浏览器中也会遇到同样的问题。在开发工具中,我禁用了缓存,选中了“保留日志”,然后查看了“网络”选项卡上的“其他”部分,其中有两个URL条目,它们都是:/product/index.php/product/fresh-water