I've been trying since yesterday to get clean urls enabled. Nothing seems to be working.

1. I can't edit the .htaccess file because it isn't showing up in snow leopard, regardless of what I am trying.
2. tried editing the conf file.. nothing.

None of the exhaustive searches I have tried have given me any usable information. I appreciate any help.

Comments

mercenary151’s picture

I pasted the contents of the folder from the unzipped location, and since .htaccess was invisible, it didn't exist in the directory I pasted it into. I selected all (visible) instead of moving the entire folder, which would include everything invisible as well as visible.

I got around this by going to the download folder and following the instructions on making things visible here..

http://communityseo.com/forums/Tip-Mac-OS-X-Users-t1244.html

and then I could see the file, and paste it into the drupal directory.

Clean URLs enabled.

Woot!

keva’s picture

that's a good tip.

I've been using InVisibles (which works fine):
http://blog.tice.de/software.php?page=InVisibles%20engl&sprache=englisch

but will likely start using Terminal instead.

jeroen’s picture

On OS X Lion apache comes with mod_rewrite enabled by default, but the AllowOverride directives are still set to None.
You're also installing Drupal into ~Sites/[username]/drupal Here's how to change it:

1) Edit /etc/apache2/httpd.conf and look for:

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None

Change "AllowOverride None" to:

AllowOverride All

2) Edit /etc/apache2/users/[username].conf and look for:

AllowOverride None

Change it to:

AllowOverride All

3) Go to System Preferences->Sharing, uncheck "Web Sharing" and check it again to restart OS X's Apache.

4) In your Drupal install at /Users/[username]/Sites/drupal/ edit .htaccess and look for:

# RewriteBase /

Uncomment (remove the hash '#') and change it to:

RewriteBase /~[username]/drupal

That's it.

memcinto’s picture

Thank you so much for the OS X Lion using ~Sites instructions - finally got my clean urls enabled!!! THANK YOU!!!
- memcinto

johnrooney’s picture

Thanks very much worked a treat on my Lion configuration.