Apache mod_rewrite for more thant 10 querystrings URL
$30-40 USD
Σε Εξέλιξη
Αναρτήθηκε περίπου 12 χρόνια πριν
$30-40 USD
Πληρωμή κατά την παράδοση
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):
[login to view URL]
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/(.*)/(.*)/?$ [login to view URL]$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: [login to view URL]
NOT WORKING: [login to view URL]