I've got a php file like: http://www.domain.com/?mod=test&act=view

And I wish to produce a redirection from that address to something similar to: http://www.domain.com/view-test

to ensure that each time a person accesses the very first uri it will get rerouted to http://www.domain.com/view-test viewing this content from the first uri.

I've the next rules:

RewriteCond %{QUERY_STRING} mod=test&act=view
RewriteRule ^$ view-test? [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^view-test.html amas/index.php?mod=test&act=view [L]

This works acceptable for pages without parameters or forms distribution but when I've any one of individuals nothing works.

And therefore if I've got a form that's posting towards the same file it will not work. Basically have something similar to http://domain.com/?mod=test&act=view&order_by=id i am playing the rerouted to uri and also the order_by parameter is overlooked!

Could it be even easy to do what I am trying? I do not fully realize much relating to this and to tell the truth I am lost between all of the info I've found... :/

Use Query String Append:

RewriteRule ^view-test.html amas/index.php?mod=test&act=view [L,QSA]