PDA

View Full Version : Problem with .htaccess


danielwarner
07-08-2008, 12:20 PM
I have a url which has more than 10 variables and when i use mod_rewrite on the url it looks like var-one/var-two/var-three/.../var-fourteen/.... All well and good.

My problem is when i try to echo these variables and i get

var-one
var-two
...
var-nine
var-one0
var-one1
var-one2

This is basicly because instead of being sent the variable from $10, $11, $12, $13 etc... im being sent $1 and then the variable has the second digit fixed to the end of the variable (so $10, $12, $14 etc...). Anyone got a fix for this? or a way around?

Thanks for any help.

oesxyl
07-08-2008, 07:06 PM
I don't understand, I need details. you use something like $1$2 ? posting the rules probably will help me.

regards

mlseim
07-08-2008, 07:10 PM
I'm wondering if there's a better way to do whatever you're trying to do.
What's the reason for using .htaccess in this way?

danielwarner
07-09-2008, 02:09 AM
I researched into this further and upon reading the manual you can only have $0 up to $9 in your string... I have had to make a different work around :(