Photo Gallery Error - .htaccess: RewriteEngine not allowed here
I currently upgraded Gallery which is a php photo gallery script - and a very good one, I highly recommend it.
I upgraded because I moved the site from an Ensim based dedicated server to a Cpanel based dedicated server. The site is hosted as a virtual host name.
I had some problems with Server 500 Errors because of the .htacess file.
I added
<Directory "/home/<domain>/public_html/gallery">
AllowOverride Options
</Directory>
to Apaches httpd.conf file which worked fine until I went back to the sight a couple of days later and got another 500 Server error.
[Mon Jan 07 18:00:38 2008] [alert] [client 192.168.xxx.xxx] /home/photos/public_html/gallery/.htaccess: RewriteEngine not allowed here
After spending hours on the net trying to find a fix, I found the following which fixed my problem
<Directory "/home/<domain>/public_html/gallery">
AllowOverride AuthConfig Options FileInfo
</Directory>
I hope this helps others with the same problem.



