Skip to Navigation

My Drupal Blog

13

Clean URLs, Drupal 7 & MAMP

The fix was super easy, but not an obvious one.

January 14, 2011

I recently got a new 15" MacBook Pro and tonight I finally got around to setting up Coda, Drush (love it!), Filezilla, and MAMP for all my development work. This machine feels so fresh, so blank -- it's the perfect opportunity to setup my workspace to perfectly suit my personal & professional needs.

Anyhow, after tinkering around with things for about an hour, I've finally gotten things operational - and alas, have my first Drupal 7 site in the works! (More info on the new site coming soon...) The major glitch I ran into along the way was getting Clean URLs to work in my new Drupal 7 installation. The fix was super easy, but not an obvious one. All the real configuration happens in the httpd.conf file. (Navigate to Applications/MAMP/conf/apache/httpd.conf.)

On line 378 there's a snippet of code that looks like this:

<Directory />
    Options Indexes FollowSymLinks
    AllowOverride None
</Directory>

All you need to do is change "AllowOverride None" to "AllowOverride All" and Eureka! You should have it! THAT'S IT. Anyhow, I thought I would share this little tidbit of information considering I had to dig through quite a few Google searches to find what I was looking for. I finally found the answer in this post on Drupal. Hope this saves you a small headache. :)