Bac2
V2EX  ›  Apache

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

  •  
  •   Bac2 · Feb 7, 2016 · 3386 views
    This topic created in 3811 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   ·   1025 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 22:52 · PVG 06:52 · LAX 15:52 · JFK 18:52
    ♥ Do have faith in what you're doing.