Bac2
V2EX  ›  Apache

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

  •  
  •   Bac2 · Feb 7, 2016 · 3305 views
    This topic created in 3769 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   ·   2069 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 00:01 · PVG 08:01 · LAX 17:01 · JFK 20:01
    ♥ Do have faith in what you're doing.