wdssmq
V2EX  ›  问与答

帮写一条 .htaccess 规则(301)

  •  
  •   wdssmq · Jul 6, 2021 · 1348 views
    This topic created in 1807 days ago, the information mentioned may be changed or developed.

    https://www.v2ex.com/'https://www.baidu.com'

    对于如上链接,想要重定向至 https://www.baidu.com

    实际得到的效果是:

    https://www.v2ex.com/https://www.baidu.com ←仍然在当前网址后拼接了。

    RewriteRule \'([^\']+)\'$ $1 [L,R=301]
    
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3000 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 14:25 · PVG 22:25 · LAX 07:25 · JFK 10:25
    ♥ Do have faith in what you're doing.