Does htaccess work on GitHub Pages? #23723
-
So I wanted to take out the html extension from the url using htaccess. is there any possible way to do it? |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments
-
If you’re using Jekyll you can access the generated content without html extension. |
Beta Was this translation helpful? Give feedback.
-
So .htaccess doesn’t work on GitHub Pages? |
Beta Was this translation helpful? Give feedback.
-
No idea, but GH pages do specifically support Jekyll. Jekyll’s tendered HTML can be referenced with or without file extension. |
Beta Was this translation helpful? Give feedback.
-
GitHub Pages doesn’t support |
Beta Was this translation helpful? Give feedback.
-
Okay. Thanks for your response |
Beta Was this translation helpful? Give feedback.
-
Do we have any updates on this as of 2022? |
Beta Was this translation helpful? Give feedback.
-
I hope this will work in the future in GitHub. As, it is looking quite difficult but they have to consider this. |
Beta Was this translation helpful? Give feedback.
-
Don't hold your breath for this feature as it is already available for GH Enterprise. I guess this feature will stay behind the paywall for the foreseeable future. No hard feelings here. Somehow they have to make money. |
Beta Was this translation helpful? Give feedback.
-
It looks like |
Beta Was this translation helpful? Give feedback.
GitHub Pages doesn’t support
.htaccess
, no. Pages does support visiting pages without the.html
extension and it will load correctly, but it won’t automatically redirect from the.html
version to the URL without it.