我有以下htaccess文件不工作的htaccess重写规则正确
Options +FollowSymLinks
RewriteEngine On
#profile view
RewriteRule ^([a-zA-Z0-9.]+)/?$ profile.php?id=$1
当我去我的网址,并输入http://www.mysite.com/username
然后在profile.php文件我有
<?php
print_r($_GET);
die();
?>
并打印出来
Array ([id] => profile.php)
它应该打印出来
Array ([id] => "username")
,所以我想有一些错误的,我重写规则?
宾果,谢谢... – fxuser
@fxuser希望它有助于:) – 2013-07-19 12:52:27