【发布时间】:2013-05-09 10:56:59
【问题描述】:
我的网址:http://localhost/test.php
我正在使用:
.htaccess:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
PHP:
$url = $_GET['url'];
echo var_dump($url);
但我得到的只是$url:NULL NULL NULL NULL NULL NULL
【问题讨论】:
标签: php apache .htaccess url-rewriting xampp