Forum Moderators: phranque

Message Too Old, No Replies

Enabling .htacces on Apache 2.2

         

neophyte

3:03 am on Jun 29, 2011 (gmt 0)

10+ Year Member



Hello All -

I need enable .htaccess on my local development environment (as a means to test various mod-rewrite rules, etc) previous to live project deployment.

I've searched around and found a post on another site saying to uncomment "AccessFileName .htaccess" in the httpd.conf file as well as the mod-rewrite line in the modules section.

Problem is that, after searching through httpd.conf, I can't find a "AccessFileName" line.

So, questions are:

1. Do I need to add this line myself and...
2. If so, can it be added at the very bottom of httpd.conf or does it need to be somewhere specific in that file?

Additionally:

Does anything else need to be added/un-commented to make .htaccess work locally?

Lastly:

I'm using directory aliases in my httpd.conf, such as:

Alias /proj1 "E:/project1/development"

<Directory "E:/project1/development">
Options +FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

To make sure that .htaccess work for each local project I'm working on, is there anything else that I need to add/change in any of the lines above?

All guidance greatly appreciated.

Neophyte