Skip to main content

enable mod_rewrite in Snow Leopard 10.6 for Drupal clean url

Posted in
Your rating: None Average: 4 (6 votes)

Buy and Sell Cisco Network Gear.

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

 So..

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

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

restart apache:

prompt# apachectl restart

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.

Ren

Just what I needed!

Thank you very much for this blog post. The clean url issue has been bothering me for some time and your post provided the solution in seconds!

Thanks

I'd been banging my head against a wall trying to get Kohana to use clean URLs and this post fixed my problem instantly, thank you so much.

I was just looking for this info

Hi,

Just a few lines to thank you for the info: I was installing Drupal for the first time and I had to google about the Drupal clean url activation. Your post solved it instantly.

Big help

Thanks, fixed my problems in seconds!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
If you math.. you're in..
2 + 1 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.