I have no problem configuring Clean URLs for live sites.
But for my local sites, I can't get it to work.
Mac OS X, 10.4.x, Drupal 5.x.
I DO have the .htaccess file in the root of my Drupal installation. But when I try the Clean URL test it fails!
Documentation suggests that this should work out of the box.
Do I need to make a change to my .htaccess file? Maybe because my local webserver reads:
http://kyle-von-hasselns-computer.local/dreamfound/?q=admin/settings/cle...

Do I need to make a change to my Apache? If so can you be specific?
This node: http://drupal.org/node/134814 says to navigate to my apache conf file, but I can't find it!
/private/etc/httpd/httpd.conf --but, I have no private, etc, httpd folders or httpd.conf file?!
Do I need to make one?

So frustrated!
Sincerely appreciate any help.
kyle

Comments

akael’s picture

I had a similar problem, had to change:

# RewriteBase /

to this:

RewriteBase /test/

If you drupal site is in the root of the apache than you will need:

RewriteBase /

If it is inside a folder named dreamfound:

RewriteBase /dreamfound/

If this doesn't work can you show me your .htaccess file?

tdailey’s picture

/private/etc is the same as /etc on OS X. These instructions are a little more detailed on enabling mod_rewrite if you still need to do that.

http://michaelkrol.com/2005/11/21/enable-mod_rewrite-on-os-x-104-tiger/

The comment there have some drupal-specific tips too.

Let me know if you still have trouble, I have a bunch of mac servers around and would be glad to help.

kyle.vh’s picture

Thank you both very much for your comments.
In my frustrations, I installed MAMP, following these instructions: http://www.lullabot.com/files/MacLocalhost.mp4

Then, clean urls does work out of the box with the standard .htaccess file.

I kinda cheated here, cause I still don't know what is wrong with my standard apache/.htaccess setup.
Likely, either of your solutions will work.
I'll try to be good and post what works when I look into it. but for tonight, i'm happy with mamp.

kyle

tdailey’s picture

Oh I thought you were on 10.4 server, not client. Yeah, for local webdev MAMP is a much better option than trying to tweak the preinstalled apache setup. That's what I use on my client side for development work.

MAMP + TextMate + Safari XRAY + Firefox 3 + Firefox Webdev + Firefox FireBug. Good stuff. :)

davedelong’s picture

I don't use MAMP on my Mac, but the process is the same.

In the httpd.conf file for Apache, you have to put "AllowOverride All" in the <Directory> block for the folder. Otherwise it won't even look for a .htaccess file.

HTH,

Dave

Get great Drupal hosting at MM Hosting. (I don't work for them; I'm just a very satisfied customer)

davedelong’s picture

The httpd.conf file will be INSIDE the MAMP installation. The httpd.conf file you refer to in /private/etc is the configuration file for the Apache installation that's part of Mac OS X.

Dave

Get great Drupal hosting at MM Hosting. (I don't work for them; I'm just a very satisfied customer)