简体   繁体   中英

Add page on Github Pages that ends in a trailing slash

I am replacing a legacy webpage with a URL of the form abc.com/home/english/, and I need to keep the same URL using Github Pages.

I am hosting the new page with Github Pages, however I need to have the same URL as the one above because that is what currently pops up on Google (due to the old site). I've tried everything I could think of, including:

  1. Adding a _config.yml file with: include: ["/home/english/.html"] with a file named .html. This didn't work as the site did not show up.
  2. Adding a .nojekyll file with a file "/home/english/.html". This resulted in my browser downloading the file instead of displaying the page.

Any help would be much appreciated!

You just have to create /home/english/index.html .

You then call it with abc.com/home/english/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM