How to Remove the File Extension From the URL on Github Pages

Поделиться
HTML-код
  • Опубликовано: 28 авг 2024
  • How to remove .html file extension from URL links on github pages.
    Website: www.kennyyipco...
    Java Game Programming Projects Playlist:
    • Java Game Programming ...
    JavaScript Game Programming Projects Playlist:
    • JavaScript Game Progra...
    Subscribe for more coding tutorials 😄!

Комментарии • 29

  • @deadgurl666
    @deadgurl666 Год назад +2

    Thank you for this! I spent hours researching how to fix this with htaccess and this is the only thing that worked. And it was so simple

    • @WebDevFreelancer4
      @WebDevFreelancer4 Год назад +1

      .htaccess also works but that is for local servers like tomcat, xampp, etc

    • @naelpontes8444
      @naelpontes8444 4 месяца назад

      @@WebDevFreelancer4 if you use local server like these it becomes a dynamic website by default, doesn't it? Does github pages still accept those?
      though I remember github pages use jekyll

  • @grantpichla
    @grantpichla Год назад +6

    You are straight to the point and my hero. Thank you.

  • @elibarber1376
    @elibarber1376 2 года назад +3

    That's awesome! any Idea how to fix it locally as well? Its nice to be able to see the github pages I am working on locally before I push the changes to github

    • @deadgurl666
      @deadgurl666 Год назад +1

      I made a copy of my files to host locally and the other copy to upload to GitHub

  • @sidds09
    @sidds09 10 месяцев назад +1

    yes this works. however if you have an image on about html it wont be displayed. let me know if works.

    • @KennyYipCoding
      @KennyYipCoding  10 месяцев назад

      is your image in the local directory or is it through some link? images should work, try putting your images inside a folder. ex) /images/sample.png

  • @solistinside
    @solistinside 8 месяцев назад

    THANK YOU SO MUCH! It really works! Respect!

  • @letsgetto1millwithoutvids
    @letsgetto1millwithoutvids Год назад

    Thank you it works it didn't work at first but I think it was still cached.
    Now how do I make it work on both GitHub pages and any web host as well as local host live server

  • @jamaicaigot9335
    @jamaicaigot9335 Год назад

    Hey, thanks for sharing! Helps me a lot! Are you in audea?

  • @chvpter_
    @chvpter_ 11 месяцев назад

    If i store my html files in a folder without index in it, is there a way to get ride of the /pages extension in the url as well? or is it best practice to have all html files in one folder together?

  • @LordPenguinVR
    @LordPenguinVR 8 месяцев назад +1

    thank you for this video

  • @wujeonghyun6865
    @wujeonghyun6865 2 года назад

    Thank you! This help me fix the problem :)

  • @Prashanth2011
    @Prashanth2011 Год назад

    Straightforward man. This helped.

  • @laviniamarcu9798
    @laviniamarcu9798 2 года назад +1

    Hi Kenny, what's the best way to reach you to discuss about a potential paid collaboration. Thank you

  • @user-ze8xv9jr4e
    @user-ze8xv9jr4e Год назад

    非常感謝您,幫助我解決了難題,真的非常感謝

  • @BrianGawlik
    @BrianGawlik 10 месяцев назад

    thank you!

  • @Lynxmountain
    @Lynxmountain 11 месяцев назад

    thanks, works :)

  • @theone-9310
    @theone-9310 6 месяцев назад +1

    it does not read the css

  • @anionllc351
    @anionllc351 Год назад

    thanks man

  • @heyankiii
    @heyankiii Год назад +1

    Does big companies use the same way?

    • @KennyYipCoding
      @KennyYipCoding  Год назад +3

      big companies generally do not create static websites, they create services that receive requests and deliver responses. Ex) login and logout. Using a backend for routing would eliminate the html extensions

    • @ebadulislam123
      @ebadulislam123 2 месяца назад

      Also they have their own domains

  • @user-gz6kl3fu8o
    @user-gz6kl3fu8o Год назад

    does not work

    • @KennyYipCoding
      @KennyYipCoding  Год назад +1

      It does work, do you have an index.html in your root folder?

    • @KennyYipCoding
      @KennyYipCoding  Год назад

      Also make sure your repo is public and not private as that can cause it to not work