How to Enable .htaccess on Apache

Friday, July 11, 2008

I was working on a site that needs to handle videos and uploading a video option is a must. One of my friend suggested to use VidiScript, so I downloaded a copy and hurriedly install it on my local server. The problem however is that I get Error 500 when I run the install scripts. I take a look on the scripts and discover that it uses .htaccess.

What is .htaccess anyway?

.htaccess files allows us to change configurations on our servers per directory or subdirectory. We may enable .htaccess files by editing our httpd.conf removing the comment on line from

;LoadModule rewrite_module modules/mod_rewrite.so

to

LoadModule rewrite_module modules/mod_rewrite.so

we need to change the AllowOverride directive also from

<directory>
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Satisfy all
</directory>

to

<directory>
Options FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
Satisfy all
</directory>

You can also rename your .htaccess file by adding the line below on you httpd.conf file

AccessFileName [filename]

example: AccessFileName .configuration

Kindly Bookmark and Share it:


0 comments: