代码 :
.ht 访问:
RewriteEngine On
RewriteRule ^(.*)/*$ base.php?request=$1 [NC,L]
基础.php
<?php
echo "this is base.php <br/> and Get Vaiables <br> ";
print_r($_GET);
?>
对于请求:
localhost/blahblahproject/hello
预期结果:
这是 base.php
和 Get Vaiables
Array ( [request] => hello )
当前结果:
这是 base.php
和 Get Vaiables
Array ( [request] => base.php )