.htaccess rewrite rules for multiple parameters
问题 Rewriting the following 3 URLs http://example.com/index.php?page=search to http://example.com/search http://example.com/index.php?page=profile&value=myname to http://example.com/myname http://example.com/index.php?page=stats&type=daily to http://example.com/stats/daily Current .htaccess is written as the following: Options -MultiViews RewriteEngine On RewriteBase / RewriteCond %{THE_REQUEST} /index\.php\?page=([^\s&]+)&value=([^\s&]+) [NC] RewriteRule ^ index/%1/%2? [R=302,L,NE] RewriteCond %