By mercenary151 on
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
Okay, fixed it.
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!
thanks
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.
The 4 easy steps to enable Clean URLs in OS X Lion using ~Sites/
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.
THANK YOU Jeroen
Thank you so much for the OS X Lion using ~Sites instructions - finally got my clean urls enabled!!! THANK YOU!!!
- memcinto
Clean URLs on Mac OSX Lion
Thanks very much worked a treat on my Lion configuration.