Thursday, September 4, 2008

How to enable .htaccess in Mac OS X 10.5 (Leopard)

Yesterday I lost a lot of time trying to enable the apache .htaccess file in my macbook. So, I decided to create this post with all information necessary to do it.

  •  You have to edit /etc/apache2/httpd.conf and in the root directory - usually /Library/WebServer/Documents - you have to change the attribute AllowOverride from None to All. Save and close the file.
If you want to enable the .htaccess in your ~/Sites directory, you have to follow the below tips.
  • You have to edit /etc/apache2/users/{username}.conf and modify the attributes Options and AllowOverride as below:
Options Indexes Multiviews FollowSymLinks
AllowOverride All
  • Save the file and restart Apache server.
So, every time that you want to use .htaccess file, you have to modify the Options and the AllowOverride of the directory definition of your application.

4 comments:

Anonymous said...

Thank you! Drove myself nuts, not thinking about the /users/ .conf ...

ragamufin said...

worked like a charm, thanks!

Londerson Araújo said...

Man finally i can take a smyle of my face!! Tank you so much for this post!!

Anonymous said...

People are getting fired up with slots, but there are some gray areas that we attempt to shed some mild on under. If you by no means heard about pay by mobile earlier than, see right here an example of the way to|tips on how to} deposit for Rainbow Riches. Click on the sign in button if you already received an account or join on the positioning following the easy process required. Vikings go Berzerk - comes with our formidable a lot as} 500 free spins welcome offer on Thor Casino (Full Ts & Cs Apply). Slot machines are coated by 온라인카지노 the Gambling Act 2005, which superseded the Gaming Act 1968. Although the number of symbols ultimately increased to about 22, allowing 10,648 combinations, this nonetheless limited jackpot sizes as well as|in addition to} the number of possible outcomes.