My .htaccess code
RewriteEngine On
RewriteRule ^([a-zA-Z0-9_-]+)/$ index.php?key=$1
My index.php code given below
<?php
$key=isset($_GET['key']) ? $_GET['key'] : 'home';
if( in_array( $key, array('home','about','terms') ) ){
include("$key.php");
}else{
include("profile.php");
}
?>
When is using "http://localhost/project_dir/home" is working correctly(home is assigned to argument '?key'). but i want to pass extra arguments like "http://localhost/project_dir/home?a=abc123"
How can i get argument "a"($_GET['a']
) ?