I am in need of writing a simple mod_rewrite rule, as follows:
something.php ==> somehting (just get rid of the .php)
something_else.php ==> something/else (replace _ with /)
So, for example it would be like this:
www.mysite.com/something.php (would be rewritten as) www.mysite.com/something
www.mysite.com/something_else.php (would be rewritten as) www.mysite.com/something/else
As I am not familiar with regular expressions, I thought it would be simpler to ask someone who can do this in 5s rather than spend days (weeks? :P) learning regular expressions and mod_rewrite.
Thanks :)