.htaccess = "500 Internal Server Error"

I have a client that is asking me to install a php based gallery on their site. The gallery requires editing the .htaccess file in the associated dir for apache to work correctly with it.

Problem is after I make the changes to the file, see below, I get an Internal server error.


htaccess-dist – required .htaccess file

Copyright © 2003, 2004 Martin Theimer

Licensed under the GNU GPL. For full terms see the file COPYING.

Contact: Martin Theimer pappkamerad@decoded.net

The latest version of phpAutoGallery can be obtained from:


$Id: htaccess-dist,v 1.8 2004/07/26 21:52:03 pappkamerad Exp $


This is the required mod_rewrite configuration for phpAutoGallery.

Change <GALLERY_WEB_PATH> to the full url path of your

root gallery folder. (and where the __phpAutoGallery folder must

be located)

Example 1:

if your gallery is accessible here:


then <GALLERY_WEB_PATH> would be “/mygallery”

and the rewrite-rule would look like this:

“RewriteRule .* /mygallery/__phpAutoGallery/wrapper.php [NE,QSA,L]”

Example 2:

or your gallery is accessible in the webroot directly:


then <GALLERY_WEB_PATH> would be “” (empty)

and the rewrite-rule would look like this:

“RewriteRule .* /__phpAutoGallery/wrapper.php [NE,QSA,L]”

Then copy this file to the root path of your gallery and rename

it to ‘.htaccess’ (default for the Apache ‘AccessFileName’ directive)

If you have problems with the loading, you may try

to add this line:


RewriteEngine on

RewriteBase http://www.chickybird.com/gallery/
RewriteCond %{REQUEST_URI} !.__phpAutoGallery/wrapper.php.
RewriteRule .* /gallery/__phpAutoGallery/wrapper.php [NE,QSA,L]

I’m sure I’m just doing something simple incorrectly.
Any help is appreciated.

PHP gallery:

PHP gallery installation instructions:



Check your site’s error logs to see if it has more information about the Internal Server Error. The current error log is /home/user/logs/domain/http/error.log.

  • Dallas
  • DreamHost Honcho