RewriteEngine OnRewriteRule ^detail.html?id=([0-9]+)-page=([0-9]+)$ detail.php?id=$1&page=$2I rewrite URL detail.php?id=1&page=1 to detail.html?id=1&page=1. I always get the 404 errors. 
Query string parameters with mod_rewrite
htaccess