Home rewrite rule to remove file extention and action
 I'm trying to create a rewrite rule to remove file extention and action from it. For example this url: password.php?action=new should be rewritten as: password/new I am trying following: RewriteRule ^password/([a-zA-Z]+)/?$/password.php?action=$1 [L,QSA] It does not seem to work. Also instead of specifying password.php file, how can i generalize it for every file? For example file1.php?action=edit file1/edit file2.php?action=something file2/something