views:

14

answers:

1

In my web root I have a .htaccess which uses a RewriteRule, for example:

RewriteRule ^/t/([0-9]+)/$ ../list.php?id=$1 [L]

Is this correct if list.php is in the folder below the current one? I can't find any information about this and it's currently not working, so I'm not sure whether it is either possible, or I am doing it wrong.

Thanks,

Dan

A: 

The second path don't care about "current folder" as it starts after the host.

MatTheCat
So you're saying everything that htaccess accesses has to be from the / ?
DRKM
Yeah I think, anyway it's working for me ^^
MatTheCat
But if it's from the / coudldn't ../list.php move backwards?
DRKM
Can't you test ? Yeah it will move backwards but be careful ("Your browser sent a request that this server could not understand.")
MatTheCat
I will have more of a play but it isn't working at the moment. I just wanted to check it was possible before I wasted time on it. Thanks.
DRKM