WordPress.org

Forums

Hide wordpress (while developing) with htaccess+htpasswd? (1 post)

  1. torsteino
    Member
    Posted 1 year ago #

    Hi,
    I'm working on a site (multisite+buddypress) we need to "hide" while developing, but we also need to see/test the site as a "not-logged-in" user, so the regular "coming soon" plugins/solutions that require a user to be logged in won't do the job. Or at least - none I know of?

    I thought I could use htpasswd+htaccess, and added the neccesary code to .htaccess and a htpasswd-file. It seems the password-part works fine, but wordpress gives a server configuration error? I have tried adding this both below and above the #BEGIN WordPress and #END WordPress:

    AuthName "Secure Area"
    AuthType Basic
    AuthUserFile .htpasswd
    require valid-user

Topic Closed

This topic has been closed to new replies.

About this Topic