• I can’t seem to figure out the correct syntax to restrict access to three key WP files in htaccess: wp-config.php, upgrade.php, install.php

    Should I make one entry like this:

    <files wp-config.php, upgrade.php, install.php>
    order allow,deny
    deny from all
    </files>

    Or three separate entries, one for each file?

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

    <files upgrade.php>
    order allow,deny
    deny from all
    </files>

    <files install.php>
    order allow,deny
    deny from all
    </files>

    Or ???

    Thx!!

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Syntax for .htaccess’ is closed to new replies.