how to pass more than 9 parameters in the file. htaccess (mod_rewrite)?

I'm having trouble spending more than nine parameters in. htaccess file with mod_rewrite apache, for example, if I pass the parameter $ 10 = "something" mod_rewrite passes the value of parameter $ 1. Is there any solution for this?


The answer is simple: You cannot.

The only thing you can do is to group some parameters into one and then parse it later in your script.

Of course, you can try splitting your pattern into 2 rules, so one rule matches 5 or 6 parameters, and then 2nd rule matches the rest (this will work because rules are executed one by one), but that will not always work (REALLY depends on actual rewrite rule, how complex it is) and requires good knowledge on what are you doing.

RewriteRule backreferences: These are backreferences of the form $N (0 <= N <= 9), which provide access to the grouped parts (in parentheses) of the pattern, from the RewriteRule which is subject to the current set of RewriteCond conditions..


Need Your Help

Take data from one table to another and remove any duplication

php mysql

I have two table: marks &amp; user_student . I want to take column data 'sid' from user_student and insert it into table 'marks' column 'stud_id'. here is my code

Resize a jpanel which has no Jframe in java swing application

java swing jframe jpanel

As a part of my learning, I made a JPanel in a simple swing application.