Skip to content

Instantly share code, notes, and snippets.

@rockyhmchen
Created July 17, 2020 12:25
Show Gist options
  • Save rockyhmchen/86a5bed6f91ba80d0158d11e79a0779c to your computer and use it in GitHub Desktop.
Save rockyhmchen/86a5bed6f91ba80d0158d11e79a0779c to your computer and use it in GitHub Desktop.

Revisions

  1. rockyhmchen created this gist Jul 17, 2020.
    16 changes: 16 additions & 0 deletions Trailing slash
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    (a) http://www.example.com/
    (b) http://www.example.com
    (c) https://www.example.com/
    (d) https://www.example.com
    (e) https://example.com/
    (f) https://example.com/fish
    (g) https://example.com/fish/

    Trailing slash on hostnames don't matter:
    (a) = (b), (c) = (d)

    Different protocols & hostnames do matter:
    (a) is not (c), (c) is not (e)

    Trailing slash on path/file does matter:
    (f) is not (g)