- This topic is empty.
-
AuthorPosts
-
March 17, 2014 at 10:55 am #166061
Nathan Gross
ParticipantI 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 #166127Nathan Gross
ParticipantThat 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 #166132Nathan Gross
ParticipantDo you guys keep your .htaccess outside of your version control system then?
March 18, 2014 at 9:12 am #166138Nathan Gross
ParticipantMost 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 #166139Nathan Gross
ParticipantSorry, 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 #166174Alen
ParticipantGit sub-modules?
March 29, 2014 at 9:26 am #167095Nathan Gross
ParticipantThanks John! For now I’m using Password Protected.
March 29, 2014 at 10:52 am #167096 -
AuthorPosts
- The forum ‘Back End’ is closed to new topics and replies.