Enabling Drupal CleanURL with Mac OS X Version 10.7.2

This might as well work with other versions of Mac OS X but I just know that this steps work with Version 10.7.2 which I am running.

I have already installed apache, php and mysql on my macbook. I just migrated to Mac from Linux. Since being a newbie to Mac OS, I had to spend an hour or so to figure out how to enable CleanURL on Mac.

So here it goes, the steps to follow to enable clean URL on Drupal with Mac OS X version 10.7.2:

1. Open /private/etc/apache2/users/[username].conf and then change ‘AllowOverride None’ to ‘AllowOverride all’.

2. After that open /Users/[username]/Sites/drupal/.htaccess and change ‘RewriteBase /’ to ‘RewriteBase /~[username]/drupal’

3. Finally restart apache2.
sudo apachectl restart


Follow

Get every new post delivered to your Inbox.

Join 53 other followers