I am interested to avoid a redirection in case of the query string contains a specific format: ?a_aid So i use this code in the .htaccess file
RewriteCond %{QUERY_STRING} !^a_aid[NC]
RewriteRule ^([a-zA-Z0-9_-]*)$ /index.php?a=$1 [L]
My problem is that it works for the URL:
http://example.com/index.php?a_aid=
but not for the URL:
http://example.com/?a_aid=
Any idea how to support both of them ???