I am new enough to Hugo (and love it!), and despite multiple researches, I could not understand how the .htaccess file is being generated in the public/ directory when I generate the site with the hugo command.
This .htaccess does not embed what I need, so I would like to take control over the generation of this file.
I have looked for the htaccess and apache keywords in my whole project, but no occurrences are found.
I am using a theme (“agico”), which uses modules from github.com/gethugothemes/hugo-modules/... but checking each of them, I don’t think any of them is in charge of generating the .htaccess file.
So my questions are:
Do you know what is generating the file?
Do you know how to debug Hugo to identify which piece is generating this file?
You can disable all transitive imports for a given theme import, but that’s probably not working in this case. One “hacky” way of disabling a module is putting a replace statement ala the below in your `go.mod``file.