【发布时间】:2014-09-15 16:06:25
【问题描述】:
这就是问题所在;用我自己的替换了一个 Magento 站点。我需要重定向类似:
http://example.com/store/index.php/figures/something/somethingelse.html?dest=products&prod_id=4625
收件人:
http://example.com/store/index.php?dest=products&prod_id=4625
任何建议将不胜感激!
【问题讨论】:
-
这并不一定很复杂,除了你没有分享关于哪些 URL 应该不被重定向的任何内容。
-
你是什么意思?上面有公式的任何东西都需要重定向到底部的那个。
-
所以基本上把网址中的
/store/index.php/figures/something/somethingelse.html替换为/store/index.php? -
您对@anubhava 下面关于“数字”令牌的回答的评论就是我的意思;您的问题没有说明哪些部分是可变的。
标签: regex apache .htaccess mod-rewrite redirect