Elpie wrote:
Joomlamahesh wrote:
When I make certain changes like to my .htaccess file, for incorrect settings, it gives me 500 Internal Server error. Does that mean my .htaccess is working properly ?
Not necessarily.
A 500 server error means one of two things - either the directive you have entered has a mistake in the syntax (that is, an error in the way it was written) OR your host has not permitted certain directives to be run in .htaccess.
There are differences between Apache 1.x and Apache 2.x that require directives to be handled a little differently, so knowing which version of Apache is running is important too.
Much depends on the way a host sets AllowOverrides in the server settings (getting errors is actually a good sign as it tells us that your host allows at least some directives to be written in .htaccess).
I am not trying to direct traffic to my site, but there is a Guide to .htaccess in the FAQ's at Mambo Guru (use the forum link in my sig) that may help explain all this. I will talk to the mods here about posting this as a FAQ on Joomla.
In Apache 2.x, if you try to override a directive set in httpd.conf with an .htaccess file and AllowOverride is not set to allow for that override it will give you an error 500 message.
So, if you misspell a directive in your .htaccess file or it is a directive that Apache will not allow to be overwritten, you will receive an error 500 message, in Apache 2.x at least.
For my AllowOverride configuration I use "AllowOverride AuthConfig Options FileInfo" which allows for SEF, password protection, and other pretty standard features.
@Elpie,
I currently don't have access to an Apache 1.3.x system, could you check if this is the case so we could know for sure?