yangxiu
V2EX  ›  问与答

iis7 下使用 web.config 文件做重定向怎么写?

  •  
  •   yangxiu · Dec 4, 2015 · 2071 views
    This topic created in 3837 days ago, the information mentioned may be changed or developed.
    不是将 abc.com 重定向到 www.abc.com 这样的

    之前使用 z-blog 建站,没有伪静态,所以文章页动态链接是 http://www.abc.com/?id=128 这样的
    做了伪静态后文章地址是 http://www.abc.com/128.html 这样的

    访问原来的动态链接 http://www.abc.com/?id=128 变成主页了,不会自动重定向囧
    如何把 http://www.abc.com/?id=*这样的链接重定向到 http://www.abc.com/*.html 这样的?

    搜来搜去都是讲如何把不带 www 的重定向到带 www 的, web.config 写法介绍类的也没提到这种情况怎么写
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2812 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 03:53 · PVG 11:53 · LAX 20:53 · JFK 23:53
    ♥ Do have faith in what you're doing.