开发者

Htaccess accessing outside of the current directory

开发者 https://www.devze.com 2023-01-21 21:38 出处:网络
In my web root I have a .htaccess which uses a RewriteRule, for example: RewriteRule ^/t/([0-9]+)/$ ../list.php?id=$1 [L]

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 cur开发者_如何学运维rent 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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消