Posted by:
second_coming
(---.pool1.Leeds-WYK2020-BAS0001.orangehomedsl.co.uk)
Hi folks,
I have a few rewriterules setup but one of them isn't working as I think it should (though I'm probably wrong
)
RewriteRule ^([^/]+)~([^/]+)~([^/]+)~([^/]+) index.php?section=$1&pg=$2&act=$3&order_no=$4 [L]
RewriteRule ^~([^/]+)~([^/]+) index.php?section=$1&pg=home&act=$2 [L]
RewriteRule ^([^/]+)~([^/]+)~([^/]+) index.php?section=$1&pg=$2&act=$3 [L]
RewriteRule ^([^/]+)~([^/]+) index.php?section=$1&pg=$2&act= [L]
The 2nd, 3rd and 4th rules all work perfectly but the first one only passes the variables $1,$2 & $3 to the php page not $4.
The link I am trying to rewrite is:
localhost/orders~upload~add~1912343
which I want to end up as:
localhost/orders/index.php?section=orders&pg=upload&act=add&order_no=1912343
Can anyone tell me what I'm doing wrong?
thanks