Apache mod_rewrite for more thant 10 querystrings URL

In my website I have a form with a lot of different parameters. The form is submitted using GET method. I get following URL (actually there are more than 25 parameters):

[url removed, login to view]

I want to redirect this url to SEF url (or something similar):


Than i have to get all of the parameters from the last URL to the $_GET or $_REQUEST array in PHP.

I have a code for 2 parameters (.htaccess):

RewriteCond %{QUERY_STRING} ^aq=([^&]*)&sw=([^&]*) [NC]

RewriteRule ^test\.php$ /makemyday/%1/%2? [R=301,L]

RewriteRule ^makemyday/(.*)/(.*)/?$ [url removed, login to view]$1&sw=$2 [L,NC]

But this code is not working with more than 9 querystrings and is also not working if query string is empty.

WORKING: [url removed, login to view]

NOT WORKING: [url removed, login to view]

Compétences : Apache, PHP, SEO

en voir plus : search string in array, website url rewrite, vf, SW, seo fr, php fr, ki , htaccess apache, apache htaccess working, array form, php seo rewrite, form array, htaccess mod_rewrite, apache rewrite redirect, url 301 url, redirect url code, htaccess redirect query string, apache redirect domain, apache 301, htaccess 301, apache htaccess redirect 301, http redirect code, apache htaccess redirect, url rewrite 301, url 301

Concernant l'employeur :
( 16 commentaires ) Bogojina, Slovenia

Nº du projet : #1616789

Décerné à:


Please see PM

%selectedBids___i_sum_sub_4% %project_currencyDetails_sign_sub_5% USD en 1 jour
(14 Commentaires)

2 freelance font une offre moyenne de $30 pour ce travail


Please check the PMB

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)