I need to redirect
www.URL.it/directory_one/index.php?param_one=XXX¶m_two=**YYY**
to
www.URL.it/newpage.php?param_three=**YYY**
I tried all I found online but the only things that works is redirect directory_one/index.php to newpage.php without parameters.
I tried this .htaccess
RewriteCond %{HTTP_HOST} =www.URL.it/directory_one/index.php? [NC]
RewriteCond %{QUERY_STRING} ^(param_one=XXX¶m_two=**YYY**)
RewriteRule ^$ http://www.URL.it/newpage.php?%1 [R=301,L]
only to see if somethings happens but not works
I tried also
RewriteCond %{REQUEST_URI} /directory_one/index\.php
RewriteCond %{QUERY_STRING} param_one=XXX¶m_two=**YYY**
RewriteRule ^(.*)$ http://www.URL.it/test/index.php? [L,R=301]
but nothings happened