.htaccess files on a Mac

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Can anyone tell me the steps I need to follow to enable .htaccess files with mod-rewrite rules on a Mac? I asked the question earlier, referencing MAMP. However, I discovered that reconfiguring things to accommodate MAMP's Apache version is way over my head. Apparently, some MAMP users just stick with Mac's default Apache program.

One reference directed me to uncomment the following lines in httpd.conf...

LoadModule rewrite_module modules/mod_rewrite.so
AddModule mod_rewrite.c
AccessFilename .htaccess

...and change "AllowOverride None" to "AllowOverride All" in both the httpd.conf and /private/etc/httpd/users/MyName.conf files.

I did all of that, with two exceptions. I never exactly found the first line; the closest thing to it is this, which I left uncommented:

LoadModule rewrite_module libexec/httpd/mod_rewrite.so


Also, I can't change "AllowOverride None" to "AllowOverride All" in /private/etc/httpd/users/MyName.conf because it kills my virtual hosts.

Thanks for any tips.


Now that's room service! Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel
to find your fit.
[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux