You can try it here: https://emirodgar.github.io/htaccess-generator/ (beta)
- Set main domain
- www redirect
- https redirect
- Default access page
- Default charset
- Force filetype download
- Limit upload file size
- Set admin mail
- Enable Gzip compression
- Enable Keep-Alive headers
- Set Expires Headers
- Error 404
- Error 500
- Prevent directory navigation
- Disable CGI execution
- Hide server information
- Prevent pages to be framed
- Disable server sign
- Block SPAM bots
- Prevent illegal or unsafe access
- Disallow script execution
- Deny request methods
- Prevent hotlinking