• Hi,

    I got a problem: I did set up WP on a sub domain with domain protection via htaccess

    AuthType Basic
    AuthName „Login“
    AuthUserFile .htpasswd
    Require valid-user

    Login is working fine.

    After that

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /pr_blog/
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /pr_blog/index.php [L]
    </IfModule>

    and then I get a 500 Internal Server Error. When I remove the password protection, WP is running properly.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Are you actually using that style of quotes?

    AuthName „Login“

    Because it should be using normal quote marks, nothing special:

    AuthName "Login"

    Thread Starter lirabella

    (@lirabella)

    Nope, that’s due to me not using the CODE BB tag. It is

    AuthType Basic
    AuthName "Login"
    AuthUserFile /var/www/.htpasswd 
    Require valid-user
    
    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Ok, so look in the apache error log and see what the 500 error message is.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Internal Server Error caused by protected domain h’ is closed to new replies.