user request example URL
instead error 404
redirect to URL
http://example.com/index.php?test
Sorry for poor English
user request example URL
instead error 404
redirect to URL
http://example.com/index.php?test
Sorry for poor English
You can use in your .htaccess:
RewriteEngine on 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ /index.php?$1 [L,QSA]
For true redirect, and not only rewrite, use [R=301,L,QSA] Flags
