【发布时间】:2012-03-23 08:40:42
【问题描述】:
我需要使用 $_GET 在 PHP 中获取病毒,我的 .htaccess 重写了 url:
localhost/arpege/gm/ 到 localhost/arpege/index.php?code=gm
这是我的 .htaccess 的代码:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ index.php?code=$1
但是当我输入 localhost/arpege/p&p/ 时,我只能使用 $_GET 获得第一个 p!
我想使用 $_GET 获取 p&p
谁能帮我解决这个问题?
【问题讨论】:
标签: regex apache .htaccess mod-rewrite