• Resolved Cardno

    (@yurentt)


    我想实现/tag/42重定向到/tag/226

    我用正则表达式匹配:/tag/42到/tag/226

    但这样他会影响:/tag/428或/tag/4258,而我不希望这些被定向

    但如果我正则表达式匹配:/tag/42$到/tag/226

    但/tag/42?orderby=comment_count/这类地址又不会被重定向

    我想要实现/tag/42和/tag/42?orderby=comment_count/被重定向到/tag/226和/tag/42?orderby=comment_count/

    但又不要/tag/428或/tag/4258这类地址不受影响,我该如何实现!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support MixHa

    (@mixha)

    Hello @yurentt ,

    This RegEx should work for your need:
    ^/tag/42(\?.*)?$

    You can also consult AI (chatgpt) to help you compose a RegEx that you need.

    Kind regards

    Thread Starter Cardno

    (@yurentt)

    非常感谢你的回复,敬礼

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘/tag/42重定向到/tag/226’ is closed to new replies.