Forum Moderators: phranque
[site.com...]
wich on the base of this rule:
^(1¦2¦3¦4¦5¦6¦7¦8¦9¦10¦11)/(.+)/(.+)/(.+)/(.+)/(.+)/(.+)/(.+)/(.+)/(.+)/(.+)/(.*)\.html$index.php?lid=$1&$2=$3&$4=$5&$6=$7&$8=$9&$10=$11 [L]
should make the url to this
[site.com...]
but Mod Rewrite does not support the $10 and $11 params it gives me the following result:
[site.com...]
I'm running thin on Windows with Apache 2.x and PhP 4.x is there any way to make the 10+ parameters to work or i'll have to think of something else?
RewriteCond and RewriteRule can each create nine back-references, %1-%9 and $1-$9 respectively.
You may be able to use chained rules, with the first rule doing part of the rewrite, and the second rule finishing the rest. See the the RewriteRule [httpd.apache.org] [C] flag.
Your pattern can be re-written for much more efficient processing using a "one or more characters not equal to a slash" subpattern like this:
RewriteRule ^([1-9]¦1[01])/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^.]+)\.html$ temp/$6?lid=$1&$2=$3&$4=$5 [C]
RewriteRule ^temp/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]*)\.html$ index.php?$1=$2&$3=$4&$5=$6 [QSA,L]
Jim