V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
youla
V2EX  ›  程序员

IIS 伪静态,怎么才能不跳转到真实 url

  •  
  •   youla · Dec 17, 2020 · 1876 views
    This topic created in 1970 days ago, the information mentioned may be changed or developed.

    用户访问: http://example.com/page/0/index.html

    实际上是: http://example.com/page/index.aspx?id=1

    这种是怎么实现的,我现在做了伪静态,效果也差不多这样,但是用户访问后还是会跳转到真实的 URL 。

    印象里以前做过,可是怎么也想不起来了……

    Supplement 1  ·  Dec 17, 2020
    搞了半天发现是服务器问题 Redirect 和 Rewrite 都是一样的效果。
    joesonw
        1
    joesonw  
       Dec 17, 2020
    iis rewrite url
    Xusually
        2
    Xusually  
       Dec 17, 2020
    使用重写,不要用跳转就行了
    lijialong1313
        3
    lijialong1313  
       Dec 18, 2020
    URL 重写随便搞一搞出入站规则就行了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5208 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 66ms · UTC 05:40 · PVG 13:40 · LAX 22:40 · JFK 01:40
    ♥ Do have faith in what you're doing.