wdssmq
V2EX  ›  问与答

帮写一条 .htaccess 规则(301)

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