1. Answer
GitHub Pages server settings are different from Apache server settings. .htaccess and httpd.conf on GitHub Pages do not apply.
2. Justification
GitHub is a very popular resource; if there is any functionality, they probably would have written about it on the official website. And nothing is written about Apache on GitHub. It is unlikely that marketers would have made such an omission.
You can try to test some .htaccess rules on GitHub Pages. Suppose to hide the directory from the URL :
RewriteRule ^folder/(.+)$ http://www.sashagoddess.com/ [R=301,L]
or displaying a custom html file on the main page of the site :
DirectoryIndex SashaPrettyWoman.html
These rules will not work.
3. Replacement
Why did this question even arise? I made the .htaccess settings on the WAMP server → transferred the site to GitHub Pages → everything worked, I was convinced that it was because of my .htaccess . However, in reality .htaccess nothing to do with it:
1. index.html in the root folder of the site on the capital
So that when you go to the main page of the site, for example, http://sashagoddess.com , the contents of the http://sashagoddess.com/index.html file would be displayed. This is on GitHub Pages by default .
2. Hiding the .html extension in the URL
So that when you go to http://sashagoddess.com/sashafantastic the same page would open as when opening the URL http://sashagoddess.com/sashafantastic.html . Also available by default .
3. Custom 404 Error Page
Configured differently .
On GitHub Pages in some cases it is quite possible to find a replacement for the .htaccess rules.