GitHub Pages trailing slashes

Using Middleman on GitHub pages with directory_indexes is included, I wonder if I can somehow get rid of the GitHub trailing slash.

My URL-addresses mainly: /foo-bar -> /foo-bar/index.html.

A visit /foo-baron GitHub pages redirects to /foo-bar/.

Is there a way to prevent redirection?

+4
source share
1 answer

" " , URL http://servername/foo/dirname, dirname - . , mod_dir http://servername/foo/dirname/.

, GitHub/Jekyll , . , foo-bar , :

http://example.com/foo-bar.html

:

http://example.com/foo-bar

& sect; Permalinks

+1

Source: https://habr.com/ru/post/1612659/


All Articles