天空是蓝色的

做好软件为中国 #gcc -c helloworld.c -o helloworld.o //编译目标文件 #gcc helloworld.o -o helloworld //编译成可执行exe #helloworld //运行exe
数据加载中……
想用wordpress的Permalink,但是空间不支持mod_rewrite,连index.php也不行~~
想用wordpress的Permalink,但是空间(万网滴)不支持mod_rewrite,连index.php也不行~~
用了index.php/%year%/%monthnum%/%day%/%postname%/
访问不会出错但是不会跳转到正常的页面,所以我想了个方法

理论上的代码,还没有实现

<?php
#$base_uri = index.php/page/welcome.html 页面标志 = page
#
$base_uri = index.php/entity/2005/12/25/4.index.html 页面标志 = entity
#
$base_uri = index.php/catalog/wordpress.html 页面标志 = catalog
$base_uri = $_SERVER['REQUEST_URI'];


#通过硬面码字符串处理得到下边两个值
$remark = "";//拿到页面的标志参数
$id = ""//拿到参数值


if($remark == "page"){
    
include "index.php?page=".$id;
    
return;
}
else if($remark == "category"){
    
include "index.php?catalog=".$id;
    
return;
}
else if($remak == "entity"){
    
include = "index.php?p=".$id;
}

?>

posted on 2005-12-26 16:09 bluesky 阅读(1016) 评论(0)  编辑  收藏 所属分类: PHP


只有注册用户登录后才能发表评论。


网站导航: