.htaccess not working in subdirectoryyour solution is failing in some instances. For example I am not able to access http://127.0.0.1/nu/users/edit/myusername where it should go to http://127.0.0.1/nu/users/edit.php?a=myusername. Where nu is an existing directory and users is another directory inside nu and edit.php is a script inside users so I have my tree like so /document_root/nu/users/edit.php