Title: customize htaccess with WordPress
Last modified: August 19, 2016

---

# customize htaccess with WordPress

 *  [isa74](https://wordpress.org/support/users/isa74/)
 * (@isa74)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/customize-htaccess-with-wordpress/)
 * hello,
 * I would like to prevent anyone to get to my first page without loging in. So,
   I altered the default .htaccess file (the one provided when installing WordPress),
   to add the password location (and maintaining the code for WordPress), as shown:
   
   AuthName “Under construction” AuthUserFile /www/password/password.txt AuthType
   basic Require valid-user Order Deny,Allow Deny from all Allow from w3.org googlebot.
   com google.com google-analytics.com Satisfy Any
 * # BEGIN WordPress
    <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond%{
   REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.
   php [L] </IfModule>
 * # END WordPress
 * When running the page I get the error “Internal server error”.
    Could you please
   let me know if the file is correct ? Thanks for your help.
 * Isa74

The topic ‘customize htaccess with WordPress’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [isa74](https://wordpress.org/support/users/isa74/)
 * Last activity: [17 years, 7 months ago](https://wordpress.org/support/topic/customize-htaccess-with-wordpress/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
