【发布时间】:2026-02-14 09:40:02
【问题描述】:
请指教
网址不正确
www.abc.com/index.php?option=com_usedtoy&view=category&limitstart=495
www.abc.com/index.php?option=com_usedtoy&view=category&limitstart=510
www.abc.com/index.php?option=com_usedtoy&view=category&limitstart=525
正确的网址
www.abc.com/index.php?option=com_usedtoy&view=category&Itemid=2&limitstart=495
www.abc.com/index.php?option=com_usedtoy&view=category&Itemid=2&limitstart=510
www.abc.com/index.php?option=com_usedtoy&view=category&Itemid=2&limitstart=525
如何在所有匹配 usedtoy 的不正确 url 格式的 url 中添加 Itemid=2 - 缺少 Itemid
编辑 使用 htaccess 代码后
新结果是
www.abc.com/index.php?Itemid=2&option=com_usedtoy&view=category&limitstart=90
【问题讨论】:
标签: php regex apache .htaccess mod-rewrite