我正在创build一个网站。 我在.htaccess文件中有这样的代码:
RewriteEngine On 但是当我去,例如/ ASEi说404未find问题是什么?
RewriteRule ^/([0-9][0-9])/$ /redirect.php?id=$1
RewriteRule ^([0-9][0-9])$ /redirect.php?id=$1
应该可能工作。 尽pipe您在这里做的是将地址从http://www.example.com/12 (仅限两位数字ID)重写为http://www.example.com/redirect.php?id=12
根据你的例子( / ASEI ),我不确定这是你真正想要的。