Bac2
V2EX  ›  Apache

请教个问题: nginx rewrite 规则转换成.htaccess

  •  
  •   Bac2 · Feb 7, 2016 · 3333 views
    This topic created in 3785 days ago, the information mentioned may be changed or developed.
    rewrite 规则
    rewrite ^/([^/]*).json$ /get.php?type=json&uname=$1 last;
    rewrite ^/(skin|cape)/([^/-]*)(|-)(|alex|steve).png$ /get.php?type=$1&model=$4&uname=$2 last;
    rewrite 规则 2
    rewrite ^/(usm|csl)/([^/]*).json$ /get.php?type=json&uname=$2&api=$1 last;
    rewrite ^/(usm|csl)/textures/(.*)$ /textures/$2 last;
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2491 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 10:10 · PVG 18:10 · LAX 03:10 · JFK 06:10
    ♥ Do have faith in what you're doing.