Home Rewrite url with 2 or more params
 I asked a question like this before but since i still can't find an answer to this i'll ask it again :-s. I'm using this very basic 'templating' script: require_once 'core/init.php'; if(empty($_GET['page'])){ header('Location: home'); die(); }$basePath = dirname(__FILE__) . '/'; $viewPath =$basePath . 'view/'; $view = scandir($viewPath); foreach($view as$file) { if (!is_dir($viewPath .$file)) { $pages[] = substr($file, 0, strpos($file, '.')); } } if(in_array($_GET['page'], $pages)){ include($viewPath . $_GET['page'] . '.php'); } else{ include($basePath . '404.php'); }  and i'm rewriting my url from /base/index.php?page=somepage to /base/somepage(somepage is a .php file in my template folder) using this htaccess file RewriteEngine On RewriteBase /base/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^?]*) index.php?page=\$1 [L,QSA]  With 1 parameter it works just fine but my problem is that i don't know how to rewrite a second param /base/profile?user=username (with no htaccess file this would have look like this /base/index.php?page=profile?user=username) and i want it to look like this /base/profile/username. I hope that this question is understandable :-s