Warning: Missing argument 2 for wp_kses(), called in /var/www/wphost/wp-content/plugins/bsocial/components/open-graph.php on line 175 and defined in /var/www/wphost/wp-includes/kses.php on line 476

Enabling .htaccess On Mac OS X

I do a lot of web development on my laptop. I’ve got Apache and PHP there, so it’s really convenient, but I usually move projects off to other server before I get around to wanting to mess with mod_rewrite. Not so, recently, but I ran into a big stumbling block when I discovered OS X’s Apache comes pre-configured to ignore .htaccess files.

A couple points. First, Apache’s own mod_rewrite docs include the following quote:

Despite the tons of examples and docs, mod_rewrite is voodoo. Damned cool voodoo, but still voodoo.

So I’m not going to feel too bad about scratching my head for a minute before realizing I should check to make sure the httpd.conf file had support for .htaccess files enabled, but the second point, and I know this thanks to Richard Rutter’s Clagnut, support must also be enabled in the user’s http.conf file (located in /private/etc/httpd/users/). For full details, go read Rutter’s enabling .htaccess in OS X post.

tags: , , , , , , , , , , ,

5 Comments to “Enabling .htaccess On Mac OS X”

  1. thank you!
    I’ve been looking everywhere and didn’t know I had to edit that damn private/etc/user file ack!
    now it works :)

  2. THANK YOU SO MUCH!!!

    I’ve been struggling with this for a while now

  3. lol five years later, but It solve my actual problem :D thanks a lot!

  4. the highlighting of keywords is so unnecessary and distracting.

User contributed tags for this post: