There is PHP file redirect to
header("location:./exchange?title=".$directionin. '_'. $directionto);
I want to re-write this URL localhost/moneyworld/exchange?title=BTC_PMUSD to this localhost/moneyworld/BTC_PMUSD i have tried
RewriteEngine On
RewriteRule ^([^/]*)\.html$ /moneyworld/exchange?title=$1 [L]
and i put the .htaccess file in the root and it didn't work then i put it in moneyworld folder and also it didn't work.