.htaccess and internal server error

4 views
Skip to first unread message

Ephic

unread,
Sep 5, 2008, 11:02:51 AM9/5/08
to Adroit PHP
How to configure .htacccess? Every time I try to run index.php I get
internal server error. When I delete .htaccess my gallery list is ok,
but when I try to list photos from any gallery I get error 404.

RewriteBase in .htaccess is the same as WEB_ROOT in adroit.conf.php
and I left every other .htaccess option untouched.

What might be the problem?

Best regards
Ephic

brad harris

unread,
Sep 5, 2008, 11:18:58 AM9/5/08
to Adroit PHP
First thing I'd try is removing the top line of the .htaccess file,
the option for following symbolic links:

Options +FollowSymLinks

Depending on how apache is setup for your environment that may or may
not be causing the server error. If that doesn't work, it may be that
mod_rewrite isn't enabled in the apache installation you have, or that
you need to enable overrides via .htaccess files for where your files
are being served from. Let me know if any of those approaches work,
or if you have more questions on them.

Ephic

unread,
Sep 5, 2008, 11:48:11 AM9/5/08
to Adroit PHP
Removing first line didn't help, but you were right about mod_rewrite
and overrides.
I use XAMPP apache+php+mysql web server. It comes with many mods and
other goodies, but it seems that many of them are disabled by default.

Thanks for your help :)

brad harris

unread,
Sep 5, 2008, 12:17:30 PM9/5/08
to Adroit PHP
No problem, glad you got it up and going.
Reply all
Reply to author
Forward
0 new messages