Turns out the file was the problem, as @TheDeadMedic suspected. The permissions were 640. After changing them to 644, the problem was solved!
Thanks for the help.
Related Posts:
- How can i redirect one url to another url using .htaccess or add_rewrite_rule
- Override htacces rule only for specific directory
- mod_rewrite loop, redirecting http to https on certain section of wordpress blog
- How can I use an .htaccess file in Nginx?
- htaccess – Redirect to subfolder without changing browser URL
- Getting a 500 Internal Server Error on Laravel 5+ Ubuntu 14.04
- Place static HTML files in path below WordPress page
- htaccess rewrite for author query string when WP is in subfolder
- Rewrite /?rest_route=/ link to /wp-json/ without changing default permalink structure in apache
- Remove year and month in URL using .htaccess
- index.php not loading in main folder of wordpress
- Rewrite rule not working
- WordPress multisite causing Error 101 (net::ERR_CONNECTION_RESET): Unknown error [duplicate]
- .htaccess redirects disappeared after re-saving permalinks
- Protect Upload Folder Files With Ampersand Problem
- Remove File Extension for Page Outside of WordPress
- WordPress URL/Folder ReWrite using Htaccess
- WordPress mod_rewrite is canceling/overwriting my other mod_rewrite rule
- Redirect from different port to subdomain – htaccess
- WordPress 404 on Subdomain
- Only expose routes with prefix /wp-json on WordPress using Apache
- What’s the opposite of required valid user in .htaccess authentication
- 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
- .htaccess in subdir gets ignored by WordPress’ own .htaccess in /
- blocking access to all post/tag URIs via htaccess
- Site in subfolder – all pages work except home
- Directing subdomain to main domain and keeping the subdomain format with .htaccess
- WordPress – Promoting A Dev Build In A Subdirectory To Production / Root Directory
- htaccess, site and staging in subdirectories
- How to write .htaccess so that https is on for subpages only but not the home page
- How to create a redirect in the .htaccess file, with 2 exceptions
- Redirect old domain with query paramaters
- 404 error Additionally 403 Forbidden error on a URL
- Custom rewrite rule, url returning 404
- mod_rewrite doesn’t work as I want even with JSON API Plugin disabled
- Does WP suppresses .htaccess if permalinks are disabled?
- 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?
- Redirect – remove custom query string
- disable WordPress 404 for one specific page/folder to receive actual php errors
- .htaccess Non-‘www’ to ‘www’ Subdomain Redirection Only Works for Homepage
- fix 302 redirection error on https
- Access sub-domain when root public_html is protected with .htaccess password
- Accepting special characters in querystring
- WordPress permalinks confusion
- How can I create a smarter .htaccess file that will add a directory?
- Configure .htaccess to have a WordPress single site installation with all subdomains pointing to the same pages?
- Rewriting subfolders to specific parent folder in WordPress
- Redirect WordPress site to a landing (construction) page using htaccess, with access to /wp-admin and /invoice
- htaccess redirect to path
- URL Rewrite 404
- 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
- htaccess mod_rewrite not working
- Add-on domain works in WordPress but links still lead to subdomain
- Can’t get pretty permalinks to work without index.php
- WordPress redirection
- How To Add CSP frame ancestors in WordPress Website? [closed]
- Subfolder install not working
- Browser Caching .htaccess
- Hardening WordPress – how to set .htaccess permissions?
- Avoid duplicate content on pretty URLs with htaccess
- Are there any negative impact if access to directories were accidently denied?
- How to remove .html from URL?
- How to remove .html from URL?
- .htaccess redirect http to https
- 404 Not Found The requested URL was not found on this server
- .htaccess – how to force “www.” in a generic way?
- How to enable mod_rewrite for Apache 2.2
- Redirect vs RedirectMatch
- How to automatically redirect HTTP to HTTPS on Apache servers?
- .htaccess Remove WWW from URL + Directories
- How does RewriteBase work in .htaccess
- How do I disable directory browsing?
- Https to http redirect using htaccess
- How to remove index.php from WordPress site URL
- .htaccess: Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration
- Generic htaccess redirect www to non-www
- Redirect old php link to wordpress link in .htaccess
- Redirect old php link to wordpress link in .htaccess
- Apache mod_rewrite Infinite Loop when Accessing WordPress Admin Dashboard
- Cant login to wp-admin (redirecting to homepage), But CAN login to wp-login.php
- Cant login to wp-admin (redirecting to homepage), But CAN login to wp-login.php
- Best collection of code for your .htaccess file [closed]
- Default .htaccess file for WordPress?
- Which one does WordPress prioritize when it comes to php.ini, wp-config and .htaccess?
- Masking wp-content/themes/name/images to just images directory using htaccess
- Improve wordpress security by hiding non public resources
- WordPress site hacked. Has .htaccess been hacked?
- Does this .htaccess security setting really work?
- Use subdomain for certain urls
- htaccess problem after saving Settings
- Multisite htaccess on localhost with WP as an SVN external?
- Stop WordPress and Plugins from Overwriting .htaccess
- File and directory permissions
- htaccess disable WordPress rewrite rules for folder and its contents
- htaccess rewrite conflict with wordpress rules and ssl
- htaccess https redirect from www to non-www