En cours

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):

http://www.domain.com/makemyday/arg1/arg2/arg3/////not/2012/high//asc/////1

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

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é à :

Solent

Please see PM

30 $ USD en 1 jour
(14 Commentaires)
3.4

2 freelance ont fait une offre moyenne de 30 $ pour ce travail

yifkdodbndo

Please check the PMB

30 $ USD en 1 jour
(0 Commentaires)
0.0