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 😄!
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
.htaccess also works but that is for local servers like tomcat, xampp, etc
@@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
You are straight to the point and my hero. Thank you.
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
I made a copy of my files to host locally and the other copy to upload to GitHub
yes this works. however if you have an image on about html it wont be displayed. let me know if works.
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
THANK YOU SO MUCH! It really works! Respect!
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
Hey, thanks for sharing! Helps me a lot! Are you in audea?
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?
thank you for this video
Thank you! This help me fix the problem :)
Straightforward man. This helped.
Hi Kenny, what's the best way to reach you to discuss about a potential paid collaboration. Thank you
非常感謝您,幫助我解決了難題,真的非常感謝
thank you!
thanks, works :)
it does not read the css
Did you remove ".css" as well ?
thanks man
Does big companies use the same way?
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
Also they have their own domains
does not work
It does work, do you have an index.html in your root folder?
Also make sure your repo is public and not private as that can cause it to not work