Hardening WordPress – how to set .htaccess permissions?

It might be useful to let the web server write .htaccess during initial site setup, e.g. when you’re setting up rewrite rules (as it said) or if you’re setting up a multisite network. Once you’ve done that though it no longer needs to edit the file so it would make sense to secure it the same as you would the other files in the root folder.

However if WordPress can’t write .htaccess itself then it will tell you what edits to make and give you lines to paste in, so it’s not a big deal if you don’t ever give it write access.