.htaccess with friendly URL that allows use of the GET method

1
Hello, my system makes use of a friendly URL, but the authentication of the API of MercadoLivre returns to my system using ?code=XXXX , what I need is that the site works in a hybrid way, both with the friendly URL and using the $_GET , similar to the following URL: site.com/dashboard/principal?code=XXXXXXXX I have almost no knowledge in the configuration of this .htaccess so if anyone can give me a light I appreciate it.

This is my current .htaccess :

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?dados=$1 [L]
    
asked by anonymous 13.06.2016 / 23:38

1 answer

1

Taking a good look at the Internet I found a solution to my problem and I'm sharing with you:

.htaccess:

RewriteEngine on
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?dados=$1&%{QUERY_STRING} [NC,L]
    
13.06.2016 / 23:50