在文档根目录中,
http://website.com/我将放置如下
htaccess文件:
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]</IfModule>然后在您的PHP脚本中,您可以根据需要操纵
$_GET['url']变量:
$path_components = explode('/', $_GET['url']);$ctrl=$path_components[0];$id=$path_components[1];$tab=$path_components[2];


