I've got a website project on my small mac book professional leopard, and i'm using built-in apache2 and php. I have made my designs both in httpd.conf and user.conf to make use of htaccess. Changes done like :

LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so

<Directory >
    AllowOverride All

The issue is when i wish to open a website like localhost/~username/site/site/index.php/welcome, index.php does some procedures and finds the best controller and also the right page.

However when I attempt to go in site like site/welcome apache provides me with the next error :

Not Found

The asked for URL Customers/username/Sites/site/index.php/welcome wasn't available on this server.

The issue is apache will get this like yes, it is personal files and also the error statement provides it with inside a file system way, but this request should be fetched to index.php rather.

my .htaccess file appears like this

<ifModule mod_rewrite.c>
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [NC,QSA,L]

What bothers me this configuration creates both Linux and Home windows but doesn't work on Mac. Personally i think condemned : )

You have to add the next line for your .htaccess file:

DocumentRoot "/~username/site/"