我需要使用 .htaccess 删除 Joomla/Virtuemart 生成的 SEF URI 的一部分,该 URI 表示菜单层次结构并以这种方式构造:
在线商店-内部商店-产品目录
这是生成的 URI:
www.domain.com/online-store/inner-store/product-catalog
我想将其更改为:
www.domain.com/online-store/product-catalog
认为这可能会有所帮助,但没有任何区别
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^online-store/inner-store/\d+-(.+) /online-store/$1 [R=301,L]
我知道这不是好的做法,但我无法更改菜单结构。
有什么建议么 ?