Upgrade to Pro — share decks privately, control downloads, hide ads and more …

「/」がウザい / Take measures on the trailing slash i...

Jun Kudo
September 25, 2021

「/」がウザい / Take measures on the trailing slash in WebApps

Japan Azure User Group 11周年イベント LT資料
WebAppsの「/」について解説とリダイレクトの対策

Jun Kudo

September 25, 2021
Tweet

More Decks by Jun Kudo

Other Decks in Technology

Transcript

  1. # curl -I https://slash1.azurewebsites.net/folder HTTP/1.1 301 Moved Permanently Content-Length: 163

    Content-Type: text/html; charset=UTF-8 Location: https://slash1.azurewebsites.net/folder/ Server: Microsoft-IIS/10.0 X-Powered-By: ASP.NET # curl -I https://slash1.azurewebsites.net/folder/ HTTP/1.1 200 OK Content-Length: 0 Content-Type: text/html Accept-Ranges: bytes ETag: W/"8c40f6f16ab0d71:0" Server: Microsoft-IIS/10.0 X-Powered-By: ASP.NET 一部省略 一部省略
  2. # curl -I https://www.server01.pw/folder HTTP/1.1 301 Moved Permanently Content-Type: text/html;

    charset=UTF-8 Content-Length: 167 Connection: keep-alive Location: https://slash1.azurewebsites.net:443/folder/ Server: Microsoft-IIS/10.0 X-Powered-By: ASP.NET 一部省略
  3. # curl -I https://www.server01.pw/folder HTTP/1.1 301 Moved Permanently Content-Type: text/html;

    charset=UTF-8 Content-Length: 167 Connection: keep-alive Location: https://www.server01.pw:443/folder/ Server: Microsoft-IIS/10.0 X-Powered-By: ASP.NET 一部省略