For those of you who have got a splitting headache trying to make htaccess work on MAC OS x, Relax. I had the same problem till yesterday till I found the silly culprit.
I hope you would have done the below elementary corrections on httpd.conf, but if you still haven’t, I would suggest that you follow the below instructions.
Search for the below text in httpd.conf file, and uncomment these three lines. (You would have to remove the # in front).
#LoadModule rewrite_module modules/mod_rewrite.so
#AddModule mod_rewrite.c
#AccessFilename .htaccess
If you do not find the above lines, add it. Then, search for the text ‘AllowOverride’. Check whether it is set to None or All. If it is set to None, edit and set it to “All”.
Thats all you would have to do if you are working on a windows or a linux based server. Restart the apache server and have fun with Mod Rewrite.
Those working on Mac OS x, you would still need to do one final change.
Change to your /private/etc/httpd/users directory and you would see another conf file. If your username is ‘celia’, it would probably be named as ‘celia.conf’. If you would open the file, you would find that there is another ‘AllowOverride none’ settings there. Change it to ‘AllowOverride All’ and restart the apache webserver. Voila, you are done with the changes.
It seems that the apache that is shipped with MAC OS x does not allow htaccess by default. After doing the above changes, I was able to add mod rewrite rules. I was so overjoyed on the discovery that I thought that this deserved a post though it is a personal blog. Hope this helps someone.
If this still doesn’t help you, may be you can drop a comment here or search in forums. God Save You!!
For my neighbours: sorrry baaa.. romba manda kaanchitanaa.. adhu thaan matter solve aaana odana ore kushi aaayitu..