Wordfence could not edit your .htaccess code
-
Hi Mark, thanks for all the time you’re putting in to help us out with the questions and issues we have – a big update like this naturally results in a lot of questions. I’ve enabled Falcon on one of my (fairly vanilla) sites and found a big improvement in site speed.
I’m having some trouble on my other site, though, getting Falcon to work. I’ve encountered two issues which may or may not be related. This site uses a subdirectory installation (WordPress is installed at http://www.example.com/wordpress) but my .htaccess file is located in the root directory (www.example.com), which is where WordPress itself writes its permalink rules to. However, as far as I can tell, Wordfence wants to write its own Falcon rules to the .htaccess file in the /wordpress subdirectory, which is the correct (or at least not the ideal) place – in my case, I don’t even have a .htaccess file there at all, as I deleted it due to it being unused/unnecessary.
I’ve gone into this issue in more detail in the comment I made on your blog post here – you may have already read it – I won’t repeat those reasons here, but simply ask if you could kindly modify Wordfence so that it writes its rules to the same .htaccess file that WordPress itself uses for its permalink settings – namely the copy in the root directory.
BTW I noticed in the Wordfence 5.0.2 changelog you have this entry: “Fix: Issue that caused caching to not work on sites using subdirectories.” I thought that might be related, but it doesn’ seem to have fixed this for me. I’m not sure what, specifically, this changelog entry refers to though – perhaps you could elaborate?
The second issue I’ve encountered is this:
I wanted to at least see if I could at least get Wordfence to write its rules to the .htaccess file in the /wordfence subdirectory – I currently didn’t have any .htaccess file there, so I created a new, completely empty one in that location and gave it the necessary write permissions. Then I tried to enable Falcon. I got this error after I clicked the “Enable Falcon Engine” button:
Wordfence could not edit your .htaccess code. The error was: Could not read from /path/to/my/public_html/wordpress//.htaccessI’ve munged the path, obviously. But note the double-slash there before “.htaccess” – that double-slash was given in the error message. Could that be the cause of this not working? Otherwise I have no idea why Wordfence can’t write to that empty .htaccess file, which does now exist at that location.
Thanks for your assistance!
The topic ‘Wordfence could not edit your .htaccess code’ is closed to new replies.