Forum Moderators: phranque
I have just taken over the hosing for a client - and having set the site up realised there was a bit not working. There is a gallery section with pop up images. The pop ups are controlled by a .htaccess which redirects to a index.php file, which in turn contains all of the content for the pop ups.
The site was developed by another company, so my lack of knowledge of the site is hampered more by my lack of knowledge regarding php and Apache config settings....
When i click on the thumbnail to make the pop up appear I get an internal server error. I checked the error log and found this:
[Fri Sep 16 10:05:39 2005] [alert] [client 99.999.999.999] /home/httpd/vhtdocs/abcdefg.co.uk/gallery/.htaccess: Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
The .htaccess contains this:
RewriteEngine on
RewriteCond %{REQUEST_URI} .*
RewriteRule ^(.*) index.php [L]
From what I can gather after investigating the problem for a while is that I need configure the server to allow the .htaccess to run in the right folder by changing the httpd.conf.
I added
'<Directory "/home/httpd/vhtdocs/abcdefg.co.uk/gallery">
AllowOverride All
</Directory>'
to the httpd.conf and rebooted the server, this made no difference.
Now I can't find any other useful info anywhere (possibly because I don't really know what I'm looking for), so if anyone can shed light on this subject it would be great!