I know mod_rewrite and .htaccess is a pretty common topic. I have searched through the forums and haven’t found a solution to my problem.
Here’s my issue:
I have a fairly vanilla OS X setup, replacing Apple’s PHP4 with the Entropy.ch PHP 5.x module.
I do my development from the my ~/Sites/ directory which houses a number of my projects and I’d prefer to keep my CI projects there as well. I’d also like to test rewriting my URLs locally so I can get a better grasp of the subject.
here’s the .htaccess file that I’m trying out:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
My index.php file is located in the site’s root directory ~/Sites/ci_test/ along with my .htaccess file.
Here’s the kicker:
I tried moving my entire “ci_test” folder into /Library/WebServer/Documents/ (OS X’s Apache root directory) and the same .htaccess file (rewrite rules) works fine.
Are there any other OS X users (or other *nix users for that matter) that have things setup this way that have any idea what might be causing this?
Thanks for your help,
Jake
