Give help. Get help.

  • # March 17, 2014 at 10:55 am

    I use a pretty standard workflow – dev local, push to staging for client review/approval and then push to production.

    I like to password protect the staging site.

    I’m currently using htaccess to password protect the stage site. However, I’d like to keep the htaccess file in version control but I can’t have the same htaccess on the production server.

    I thought about and <if statement but that’s not available on the version of apache my server (media temple – gs) uses.

    Any recommendations? How do you peeps manage this?

    Perhaps use a plugin?

    # March 18, 2014 at 8:06 am

    That link is essentially what I am using now. However in order for it to work, you modify the .htaccess code. Since I’m only using .htaccess/.htpasswd on the staging site, that wont work for keeping .htaccess in version control.

    I’m leaning toward not using .htaccess for the security, and just using a WordPress plugin.

    # March 18, 2014 at 8:39 am

    Do you guys keep your .htaccess outside of your version control system then?

    # March 18, 2014 at 9:12 am

    Most of my sites use a bit more than just the standard wp permalink stuff—like h5bp stuff, or I may be redirecting some old links from a client’s old site, etc.

    Anyway, how can I have the password stuff in version control but only use it for 1 of the sites?

    As mentioned earlier, the version of Apache that my server uses won’t allow if statements.

    How do you avoid this?

    # March 18, 2014 at 9:24 am

    Sorry, i didn’t see your follow up post.

    It appears Apache 2.4 could solve this for me, but (mt) isn’t using that on their grid server.

    # March 18, 2014 at 3:15 pm

    Git sub-modules?

    # March 29, 2014 at 9:26 am

    Thanks John! For now I’m using Password Protected.

    # March 29, 2014 at 10:52 am

    That one looks pretty good, and allows easy access. The one I posted, you kinda have to go through a few more hoops. You use to be able to add an IP, then they would get full access, but now that’s in the paid version.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.