#1 smseo
在 index.php 里的
$spConfig = array(
里面配置了以下
'spUrlRewrite' => array(
'suffix' => '.html',
'sep' => '-',
'map' => array(),
'args' => array(),
),
后
通过 访问 我的域名.com/main-index.html
提示 无法找到该页 应该显示 Hello World 才是对的嘛
直接访问 我的域名.com 显示是测试的 Hello World
2012-04-18 12:13:33
#2 jake
如果浏览器提示 “无法找到该页”,那么就是服务器的rewrite设置没有生效。
看看手册关于各种服务器的rewrite的设置。
正确来说,如果服务器的rewrite配置对的话,访问任何的文件,都会转到首页的。
2012-04-18 12:48:57
#4 jake
smseo 发表于 2012-4-18 13:15
我的服务器WINDOWS2003
在index.php 里 自定义伪静态函数 了
还要配置httpd.ini 吗? ...
对的,伪静态首先要服务器能支持,然后php才能跑伪静态的程序。
手册《伪静态的实现》
http://www.speedphp.com/urlrewrite.html 估计你的服务器是IIS,看看手册《
IIS的URLRewrite伪静态设置》
http://www.speedphp.com/interaction-iis.html
2012-04-18 13:18:07