Skip to content

Instantly share code, notes, and snippets.

@dominicvogl
Last active January 2, 2016 11:49
Show Gist options
  • Select an option

  • Save dominicvogl/8299046 to your computer and use it in GitHub Desktop.

Select an option

Save dominicvogl/8299046 to your computer and use it in GitHub Desktop.
<Files wp-login.php>
AuthName "Intern"
AuthType Basic
AuthUserFile /var/customers/webs/web58/www.world-of-textiles.com/wp-content/themes/tmpl_wot/.htpasswd
require valid-user
</Files>
<?php
$dir = dirname(__FILE__);
echo "<p>Full path to this dir: " . $dir . "</p>";
echo "<p>Full path to a .htpasswd file in this dir: " . $dir . "/.htpasswd" . "</p>";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment