【问题标题】:URLRewrite - What is the regular expression pattern that match with this URLURLRewrite - 与此 URL 匹配的正则表达式模式是什么
【发布时间】:2014-07-25 19:55:28
【问题描述】:

我想知道这个模式: http://desarrollo.test.com.mx/varSTATIC/fe/loquesea/mi-pagina.html

我正在使用 URL 重写,因为我想将此 URL 重定向到: http://otro.dominio.com/loquesea/mi-pagina.html

然后我需要一个模式来匹配包含“varSTATIC”的 URL。

请!!救命!!!

Tnks!

【问题讨论】:

  • 你试过什么?你在用什么(.htaccess)?鉴于可用信息,这是"good enough"

标签: regex iis-7 url-rewriting


【解决方案1】:

该模式似乎比“包含 varSTATIC”更复杂。看来您实际上只想用“loquesea”替换“varSTATIC/fe/loquesea”。

因此,如果您使用通配符,则模式将为“varSTATIC/fe/loquesea/*”,并且重定向的 URL 将为 loquesea/{R:1}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-11-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-03-16
    • 1970-01-01
    • 2020-07-24
    相关资源
    最近更新 更多