Skip to main content

Enable Drupal Clean URLs in Snow Leopard 10.6.7

Buy and Sell Cisco Network Gear.

My Drupal site wasn't letting me use clean url's

Open a terminal window.

prompt% cd /etc/apache2/

edit: httpd.conf

find: AllowOverride None
Change to: AllowOverride All

Edit the Directory block in /etc/apache2/users/user_name.conf  you need to add FollowSymlinks to Options and change AllowOverride to All

 

prompt% cd /etc/apache2/users/

edit: user_name.conf

Needs to look like this:

<Directory "/Users/<the_user>/Sites/">
    Options Indexes MultiViews FollowSymlinks
    AllowOverride all
    Order allow,deny
    Allow from all
</Directory>

I also made the following change to my .htaccess in the drupal base.

# uncomment the following line:
  RewriteBase /~{username}/drupal7

 

Go back to Administer -> Site Config  -> Clean URL's and check enabled..

 

This option makes Drupal emit "clean" URLs (i.e. without ?q= in the URL).
 

Good to go.

Your rating: None Average: 5 (2 votes)