WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. torsteino
    Member
    Posted 8 months 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

Reply

You must log in to post.

About this Topic