Htaccess将php文件重命名为友好的URL

my problem is i want to rename this 2 urls with htaccess and i have no idea

want to convert

mydomain.com/info.php?act=statistics
mydomain.com/info.php?act=about_us

into

mydomain.com/statistics
mydomain.com/about_us

I will be very grateful since i dont know anything about htaccess.

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /info.php?act=$1 [L]

This will pass /whatever to /info.php?act=whatever The ! -f and ! -d RewriteCond checks to be sure the file doesn't exist first.