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.
Related Posts:
- File and directory permissions
- Rewrite /?rest_route=/ link to /wp-json/ without changing default permalink structure in apache
- index.php not loading in main folder of wordpress
- Which WordPress scripts need to be executable for a fresh installation?
- Redirect from different port to subdomain – htaccess
- WordPress 404 on Subdomain
- Only expose routes with prefix /wp-json on WordPress using Apache
- Restricting user login by IP address
- What’s the opposite of required valid user in .htaccess authentication
- How can i redirect one url to another url using .htaccess or add_rewrite_rule
- Override htacces rule only for specific directory
- Restrict uploaded files into a custom folder to logged in users by htaccess: looking for Nginx – not only Apache – solution
- How do I test to ensure that my wp-config file is protected?
- .htaccess Security Header Rules
- mod_rewrite loop, redirecting http to https on certain section of wordpress blog
- .htaccess in subdir gets ignored by WordPress’ own .htaccess in /
- Directing subdomain to main domain and keeping the subdomain format with .htaccess
- WordPress – Promoting A Dev Build In A Subdirectory To Production / Root Directory
- Redirect old domain with query paramaters
- Does WP suppresses .htaccess if permalinks are disabled?
- fix 302 redirection error on https
- Access sub-domain when root public_html is protected with .htaccess password
- Accepting special characters in querystring
- Centos 7.2 wordpress on going to /admin shows Forbidden You don’t have permission to access /wordpress/wp-admin/ on this server
- WordPress permalinks confusion
- Configure .htaccess to have a WordPress single site installation with all subdomains pointing to the same pages?
- Unable leverage Browser Caching on AWS Bitnami stack (Apache) through W3TC and Cloudfront CDN
- How to move wordpress website from hosting account to localhost
- How to block wordpress admin by htaccess
- I can access subdirectory, but not files within it
- Debug errors for “Destination directory for file streaming does not exist or is not writable”
- WordPress redirection
- How To Add CSP frame ancestors in WordPress Website? [closed]
- Subfolder install not working
- Browser Caching .htaccess
- Getting a 500 Internal Server Error on Laravel 5+ Ubuntu 14.04
- .htaccess: Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration
- htaccess problem after saving Settings
- Multisite htaccess on localhost with WP as an SVN external?
- htaccess disable WordPress rewrite rules for folder and its contents
- htaccess https redirect from www to non-www
- Name-based virtual host configuration in Apache seems to cause a “500 Internal Server Error”
- WordPress Multisite – Multiple subfolders for blogs
- Isolating WordPress to a subfolder
- Error 101 after upgrading WordPress
- What is the role of .htaccess file in WordPress?
- Remove File Extension for Page Outside of WordPress
- different child theme for subdomain
- How do I edit the htaccess file to optimize my website?
- Block only external access to wp-cron.php on OpenLiteSpeed
- Site searches by Python for non-existent assets
- WordPress On subfolder
- Best way to redirect site in subdirectory to root?
- Missing slash after moving site to subfolder
- WildCard SSL with wordpress subdomain
- Changes to .htaccess not updating the file (old rules still take effect)
- How To Allow Only Specific User Agent To Access a URL?
- How to ignore folder in site root while accessing a URL
- How can I enable keep alive (Not accessing to Apache)
- Site loads very slowly (4-5 minute load time)
- HTTP sitewide, except for: wp-admin, and 2 custom directories
- How do I host WordPress on a hidden domain through a reverse proxy?
- WordPress installed in root, need second in subdirectory with different domain
- htaccess has broken my site
- TimThumb & htaccess : clean url
- Only Allow Front End Access
- .htacess rewrite condition: page to seconddomain/page
- 404 error Additionally 403 Forbidden error on a URL
- Need help rebuilding lost htaccess file
- I have a page using a pretty url and a mod_rewrite rule matching it. I expected it to give an error but it’s working. Why?
- How do I setup htaccess for 301 redirects, post Joomla to WordPress migration? [closed]
- How to rename index.php to home.php
- Strange behaviour of is_user_logged_in() and get_current_user_id()
- disable WordPress 404 for one specific page/folder to receive actual php errors
- .htpasswd asking for authentication on home page
- WordPress login fail after .htaccess domain redirect
- Redirect to new domain with .htaccess [closed]
- Redirect https://www.subdomain.domain.com is not redirecting to subdomain.website.com [closed]
- htaccess redirect throws an error: PHP Catchable fatal error: Object of class WP_Error could not be converted to string
- Can’t access htaccess [closed]
- .htaccess redirect not properly working [ ?utm_source=]
- Should I prevent access to .htaccess and wp-config.php files?
- WordPress How to rewrite URL for custom pages
- Downloading zip or tar.gz inside WordPress installation?
- Clicking PUBLISH Now Redirects to 404 PAGE NOT FOUND
- Unable to find ‘full-path’ to my 404.php file
- Use htaccess to redirect wordpress non-existent page to homepage
- Moved WordPress to other folder (Windows) WAMP = 403 Forbidden
- Rewrite /keyword1+keyword2.html to search page | .htaccess
- What to do after a wrong RewriteRule?
- Need to edit htaccess while moving on WordPress
- How can I create a private site that is inaccessible from the outside?
- Issue after changing permalink structure [duplicate]
- Can I redirect the http request towards an old folder to the homepage using .htaccess file? [closed]
- rewrite rule on plugin activation
- Url redirection using htacess for my website
- WordPress Media Library rendering blank image tiles
- Redirect loops in Bing holding my sites back
- How do I modify each instance of setcookie?
- Permalinks not working on debian with OVH