TIP: How to make .htaccess files work on OS X 10.5

Posted on January 23, 2011 by David Hilowitz

 

To make .htaccess files work as expected, you need to edit /etc/apache2/sites-available/default. Look for a section that looks like this:

        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
                # Uncomment this directive is you want to see apache2's
                # default start page (in /apache2-default) when you go to /
                #RedirectMatch ^/$ /apache2-default/
        </Directory>

 

You need to modify the line containing AllowOverride None to read AllowOverride All. This tells Apache that it’s okay to allow.htaccess files to over-ride previous directives. You must reload Apache before this change will have an effect:

sudo /etc/init.d/apache2 reload

 

4 Comments »

  1. Gasper N.Liebe Anna.Freut mich das Sie erfolgreich mit Capsiplex abgenommen haben. Capsaicin (der Wirkstoff in Capsiplex/Chilli Pfeffer) ist außerdem auch gut gegen Venöse Gefäßerkrankungen und auch bei Arthritis hilft es gut.Mfg,Gasper N.

    Comment by kreditkarten anbieter — October 19, 2016 @ 11:53 am

  2. Just a fast hello and also to thank you for discussing your ideas on this page. I wound up in your weblog right after researching physical fitness connected issues on Yahoo… guess I lost track of what I had been performing! Anyway I’ll be back as soon as again within the future to test out your blogposts down the road. Thanks!

    Comment by schwarz kreditkarte — October 19, 2016 @ 12:32 pm

  3. Thank you for expressing a Christlike attitude. I am not much of a believer, although I was reared to be, but I cringe every time my Oh-so-Holier-Than-Thou Christian colleagues whine about the cost of their Hawaiian vacations.

    Comment by kreditzins lenkdrachen — October 22, 2016 @ 11:15 am

  4. you’ve just described me and my love/not so much relationship with New Haven, CT. I don’t know that I’ll ever find another place to live where we just blend in this easily….

    Comment by hdi gerling lebensversicherung erfahrung — November 5, 2016 @ 1:48 am

Leave a comment