I tried .htaccess rewrite from
https://example.com/?page=contact&query1=test1&query2=test2
to
https://example.com/contact/?query1=test1&query2=test2
with output as
Array
(
[page] => contact
[query1] => test1
[query2] => test2
)
I tried the rewrite below but failed to get output-
RewriteEngine On
RewriteRule ^(.*?)//?(.*)$ /?page=$1&$2 [NC,L]
Here I should include that I can make any query after https://example.com/contact/ will make output as follow as similar to regular get string with "page" query.
Such as-
https://example.com/?page=contact2&query15=test14&query25=test24&query35=test34
will output the $_GET query string
Array
(
[page] => contact2
[query15] => test14
[query25] => test24
[query35] => test34
)