【发布时间】:2012-10-28 13:57:22
【问题描述】:
我只有一行index.php
<?php echo $_GET['a']; ?>
如果我输入url:
http://localhost/test/?a=abc.....
我明白了
abc.....
但如果我创建.htaccess 并写:
RewriteEngine on
RewriteRule ^([a-z]+)$ ?a=$1
如果我输入url:
http://localhost/test/abc.....
我只得到abc(没有点.....)
为什么会这样?
如果发送了abc..... 字符串,我想得到一个404 error。我该如何存档?
【问题讨论】: