joined:Mar 20, 2008
Hi all, I'm trying to ensure a single directory can rewrite multiple parameters and create a number of virtual folders deep.
For this example, I am just trialling two levels deep.
I have tried:
RewriteRule ^([^/]+)/([^/]+) index.php?var1=$1&var2=$2 [NC]
RewriteRule ^([^/]+)/ index.php?var1=$1 [NC]
Each rule individually works fine, and the page renders, but when I try and GET the var1 parameter using the 2 level deep folder structure it prints index.php not the actual folder name. i.e. abc
Printed: index.php from GET['var1']
Should have printed: abc
Thanks in advance.