Forum Moderators: phranque
RewriteRule ^page/([0-9]+)/([0-9]+)/([0-9]+)?$ /example.htm?var1=var&var2=$1&var3=$2&var4=$3 [L]
This isn't working,
RewriteRule ^page/([0-9]+)/([0-9]+)/([0-9]+)/([0-9]+)?$ /example.htm?var1=var&var2=$1&var3=$2&var4=$3&var5=$4 [L]
When I test, var5 equals nothing, the rest of the vars come through fine.
Any ideas?
Since you have followed the last variable group in the RewriteRule pattern with a "?", the rule can match even if only three variables are present in the incoming URL, and var5 would be blank in that case.
Other than that, I see nothing out of the ordinary here.
Jim