Is it possible to implement this easier? If necessary before param20

RewriteEngine On #RewriteCond %{HTTP_HOST} ^site.ru #RewriteRule (.*) http://www.site.ru/$1 [R=301,L] RewriteRule ^([^/\.]+)$ ?param1=$1 [QSA,L] RewriteRule ^([^/\.]+)/([^/\.]+)$ ?param1=$1&param2=$2 [QSA,L] RewriteRule ^([^/\.]+)/([^/\.]+)/([^/\.]+)$ ?param1=$1&param2=$2&param3=$3 [QSA,L] RewriteRule ^([^/\.]+)/([^/\.]+)/([^/\.]+)/([^/\.]+)$ ?param1=$1&param2=$2&param3=$3&param4=$4 [QSA,L] RewriteRule ^([^/\.]+)/([^/\.]+)/([^/\.]+)/([^/\.]+)/([^/\.]+)$ ?param1=$1&param2=$2&param3=$3&param4=$4&param5=$5 [QSA,L] RewriteRule ^([^/\.]+)/([^/\.]+)/([^/\.]+)/([^/\.]+)/([^/\.]+)/([^/\.]+)$ ?param1=$1&param2=$2&param3=$3&param4=$4&param5=$5&param6=$6 [QSA,L] 
  • Better teach your script to rake this line. if it's php, then explode ('/') will give you an excellent array of parameters - Mike
  • It is impossible. for the sake of safety - Gleb
  • Hm strange security. The script usually has much more possibilities for checking the correctness of the parameters passed - Mike
  • And if I'm not mistaken 20 parameters you can not handle. Maximum there are 10 pcs. - Visman

0