访问 http://localhost/student/xxx 失败 1
访问 http://localhost/index.php/student/xxx 成功
规则如下。
RewriteRule ^(.*)/student/(.+) $1/index.php?num=student&key=$2
我想让最上面那个格式可以访问。如何修改规则
访问 http://localhost/index.php/student/xxx 成功
规则如下。
RewriteRule ^(.*)/student/(.+) $1/index.php?num=student&key=$2
我想让最上面那个格式可以访问。如何修改规则
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
我的是 apache 上面这条规则适用。唉。
上面的phpinfo界面是不是已经支持了urlrewrite了,大家帮我看看啊
下面的这个是htaccess里的规则代码:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule user-([0-9]+).html file.php?t=$1
</IfModule>
url里面输入http://127.0.0.1/user-11.html
总是出现无页面啊啊。。
可我已有file.php在根目录下
代码<?php
$thing=$_GET['t'];
echo $thing;
?>
求高手指导!
!!!