I'm trying to rewrite
http://localhost/messages/index.php?s=compose
to
http://localhost/messages/compose
but it gives me Internal Server Error
RewriteEngine On
RewriteRule ^messages/([^/]*)$ /messages/index.php?s=$1 [L]
I'm using a online site where you can generate rules so it should work, on the site I can make a rule to rewrite it to http://localhost/compose.html
that works and gives me no error, but rewriting for http://localhost/messages/compose
give me error.
Mod rewrite engine is on
Is it something to do with fact that messages is a folder/directory?