wdssmq
V2EX  ›  问与答

帮写一条 .htaccess 规则(301)

  •  
  •   wdssmq · Jul 6, 2021 · 1415 views
    This topic created in 1836 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   ·   5758 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 02:13 · PVG 10:13 · LAX 19:13 · JFK 22:13
    ♥ Do have faith in what you're doing.