我有这个联控规则奇怪的现象:EDITED
RewriteRule ^(.*)$ $1.php [NC]// the problem is caused by this. How can I keep it without having this result?
RewriteRule ^user/(.*)$ user.php?user=$1 [NC]
RewriteRule ^ride/(.+)/$ ride.php?myRideId=$1 [NC,L]
当我这样做:
www.example.com/ride/123
一切正常,我的浏览器中正确显示但如果我尝试使用:
$rideId = $_GET['myRideId'];
echo $rideId;
结果是:
123.php/123
我不明白为什么。重写规则中有任何错误?
print_r($ _ GET);给你结果? –
@MihirChhatre阵列([myRideId] => 123.php/123) – mat