Problem with .htaccess

Im having some troubles with setting up htaccess... i tried it on my own "virtual server" (wamp)
and i also tried it on a hosted website at work, i got the same error so i must be doing something wrong..

RE: Problem with .htaccess

Well it depends on how your web page is marked up and or coded. For instance a 500 internal error is very generic and doesn't fully explain the error. Are you trying to render the page in php, asp(x), jsp(x), etc.?

If you are using a server side programming language such as those mentioned above and you have a syntax error, this will occur. For example,

PHP

<?php

//.....

functionrenderIMG($path,$alt){

/** $path = santized path from within class..

** $alt = sanitized alt text from within class

**/

return"<img src='$path' alt='$alt'>";

}//notice below

}//</==== Syntax error

echorenderIMG('./imgs/image1.png','Image One');

//.....

?>

Now, either php will try to throw an fatal error, or Apache will try to handle it first from your .htaccess file. If handling from your .htaccess, this will generate a 500 internal server error. Meaning it tried to render but an error has occurred.

You could also have a typo in the .htaccess file itself, sometimes when copying and pasting you can pick up non-rendering characters and then depending on what encoding you save it as compared to what the it should be, this could cause errors as well.

This is just one instance of this error as I had this happen to me yesterday when I accidentally added an extra } at the end of my class.

The philosophy of one century is the common sense of the next. -Fortune Cookie

I would like to thank a few friends that I have made here that helped me and deserve to be mentioned:
System_Meltdown, Futility, nvrlivenvrdie, Mastergamer, TrueHacker, S1L3NTKn1GhT, Reelix, ynori7, Demons Halo, kryptor

The philosophy of one century is the common sense of the next. -Fortune Cookie

I would like to thank a few friends that I have made here that helped me and deserve to be mentioned:
System_Meltdown, Futility, nvrlivenvrdie, Mastergamer, TrueHacker, S1L3NTKn1GhT, Reelix, ynori7, Demons Halo, kryptor

oh and

Mordak, my long lost brother from across the pond!

Hellbound Hackers is the collective work of the staff and the community and is therefore licensed under the CC BY-NC-SA license.