I have a htaccess file and the path to access it is:
When I use:
file_put_contents('wordpress/.htaccess', implode('', $data));
I get the error "Failed to open stream"...
How do you target a htaccess file with file_put_contents? From what I can tell the path is correct