[SOLVED] htaccess redirect using get parameters and remove same parameters

Issue Please help me need redirect search.html?searchword=value&searchphrase=all to search.html?searchword=value I tried: RewriteCond %{QUERY_STRING} ^searchword=(.*) [NC] RewriteCond %{QUERY_STRING} searchphrase= [NC] RewriteRule ^(.*)$ /search.html\?searchword=%1 [R=301,L] but it do not work. Solution You may use it like this: RewriteCond %{QUERY_STRING} (?:^|&)searchphrase= [NC] RewriteCond

Continue reading