-2

Say my wordpress install is here, example.com/wp/ but my .htaccess is in example.com, am I ok with

<Files wp-config.php>
  Order Allow,Deny
  Deny from all
</Files>

or do I need to specify a directory?

<Files /wp/wp-config.php>
  Order Allow,Deny
  Deny from all
</Files>
Chuck
  • 523
  • 1
  • 9
  • 24

1 Answers1

0

Only the first version works...

<Files wp-config.php>
  Order Allow,Deny
  Deny from all
</Files>

As per the current documentation, in <Files filename>, the filename should include a filename, or a wild-card string, where ? matches any single character, and * matches any sequences of characters.

So, specifying path doesn't work.

Pothi Kalimuthu
  • 1,168
  • 1
  • 12
  • 26