The Main problem of route not working is there is mod_rewrite.so module in macos, linux not enabled in httpd.conf file of apache configuration, so can .htaccess to work. i have solved this by uncomment the line :
# LoadModule rewrite_module libexec/apache2/mod_rewrite.so
Remove the #
from above line of httpdf.conf
. Then it will works.
enjoy!