• I have secured my wp-config file by adding this code to my .htaccess file:

    # protect wpconfig.php
    <files wp-config.php>
    order allow,deny
    deny from all
    </files>

    Now I like to know this: is it still possible for me to edit the wp-config file and add code to it? For example: can I edit the wp-config file in my webshosts DirectAdmin control panel?

    Or is it not possible to edit the wp-config file with this code in .htaccess? And do I have to delete the code in .htaccess first, before making any new changes in wp-config?

    Thank you for your help 🙂

    • This topic was modified 4 years, 5 months ago by Steven Stern (sterndata).
    • This topic was modified 4 years, 5 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘secure wp-config and then edit’ is closed to new replies.