Add a password-protected directory to a WP site

I had a client ask me today if I could set up a secure directory she could use for uploading via FTP some large files needed by another organization. Normally this is a very easy thing to do in cPanel – she’d done it before, years ago – but she couldn’t get it to work now. There’s been a major change since the last time she did it: their site now runs in WordPress. She’s using WP’s ‘pretty permalinks’ feature, which added a few lines to her site’s htaccess file. Those lines were the culprit I was looking for. It’s a pretty easy thing to work around, but it took a bit of google-fu to find the fix:

Credit for the htaccess tweak goes to this guy.

stuff we dig

FYI: yes, the above are affiliate links, so we do make a small amount of money if you follow them over and buy what they're selling. Thank you for helping pay our hosting costs!

Dave Kuhar

Dave is the jack-of-all-trades running Transmit Studio, a media creation lab in San Jose. He's built more websites than he can remember, well over a hundred of them on WordPress. Whether it's tradeshow booths, video/TV, graphic design, presentations, magazine, tearsheet, and catalog layout, corporate identity packages, or just about any other kind of visual communication project, he's worked on it!

Leave a Comment