访问 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
我想让最上面那个格式可以访问。如何修改规则
解决方案 »
- PHP URL問題
- 【求助】php通过PDO连接DB2
- xampp pdo odbc 改过php.ini了,但还是不行。
- PHP 5.25+windows2003 GD载图是黑屏????
- 请教个正则替换表达式
- 如何输出xml中指定内容?
- 老大们,请问下我在javascript设置的COOKIE如果在php程序里面读取啊,重谢!
- 安装freetype2.2.1 出错make: Nothing to be done for `unix',请高手指点下,在线等
- 为什么不能传递表单的值呢?
- 一个简单的例子,但运行不了,为什么?
- 求一个PHP4或者PHP5能用的php_w32api.dll
- 用php开发出来的cms,如何有针对的对客户进行授权?
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;
?>
求高手指导!
!!!