How can i use .htaccess with my HTML project?

I want to make an error 404, 403 page using .htaccess and all of that stuff, but when i try to use it, it redirects me to the default 404 page.

How can i make .htaccess to work in my project?

Glitch does not support .htaccess file, because it doesn’t use Apache.


This is a duplicate. See A way to make custom 404 page for glitch website applications?